data

package
v0.0.0-...-10d2010 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceConfig

func GetServiceConfig(key string) (string, error)

func TransformDPType

func TransformDPType(dptype int) string

func UpdateHttpParam

func UpdateHttpParam(params string) (string, error)

Types

type DataProviderResp

type DataProviderResp struct {
	Did  string `json:"did"`
	Data string `json:"data"`
	Sig  string `json:"sig"`
}

type EncryptedDPResult

type EncryptedDPResult struct {
	Data      interface{} `json:"data"`
	Encrypted string      `json:"encrypted"`
}

type HttpDataProvider

type HttpDataProvider struct {
	// contains filtered or unexported fields
}

func NewHttpDataProvider

func NewHttpDataProvider(dp *store.DataProvider) (*HttpDataProvider, error)

func (*HttpDataProvider) CheckHttpStatus

func (dp *HttpDataProvider) CheckHttpStatus(httpMethod, urlpath, params string) (bool, error)

func (*HttpDataProvider) CheckUrl

func (dp *HttpDataProvider) CheckUrl(urlpath string) error

func (*HttpDataProvider) InvokeMethod

func (dp *HttpDataProvider) InvokeMethod(methodName string, paramMap map[string]interface{}) ([]byte, error)

deprecated

func (*HttpDataProvider) InvokeMethodWithParamStr

func (dp *HttpDataProvider) InvokeMethodWithParamStr(methodName string, paramStr string) ([]byte, error)

func (*HttpDataProvider) ParseHttpResult

func (dp *HttpDataProvider) ParseHttpResult(httpMethod, urlpath, params string) (string, error)

func (*HttpDataProvider) VerifyDataSig

func (dp *HttpDataProvider) VerifyDataSig(body []byte) (bool, error)

type MultiDPResult

type MultiDPResult struct {
	Data interface{}
	Sig  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL