kernel

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationPaymentInterface

type ApplicationPaymentInterface interface {
	kernel.ApplicationInterface

	Scheme(productID string) string
	CodeUrlScheme(codeUrl string) string
	SetSubMerchant(mchId string, appId string) ApplicationPaymentInterface

	InSandbox() bool
	GetKey(endpoint string) (string, error)
}

type BaseClient

type BaseClient struct {
	kernel.BaseClient

	App *ApplicationPaymentInterface
}

func NewBaseClient

func NewBaseClient(app *ApplicationPaymentInterface) *BaseClient

func (*BaseClient) AuthSignRequest

func (client *BaseClient) AuthSignRequest(config *kernel.Config, endpoint string, method string, params *object.StringMap, options *object.HashMap) (*object.HashMap, error)

func (*BaseClient) PlainRequest

func (client *BaseClient) PlainRequest(endpoint string, params *object.StringMap, method string, options *object.HashMap,
	returnRaw bool, outHeader interface{}, outBody interface{},
) (response interface{}, err error)

func (*BaseClient) Request

func (client *BaseClient) Request(endpoint string, params *object.StringMap, method string, options *object.HashMap,
	returnRaw bool, outHeader interface{}, outBody interface{},
) (response interface{}, err error)

func (*BaseClient) RequestArray

func (client *BaseClient) RequestArray(url string, method string, options *object.HashMap, outHeader interface{}, outBody interface{}) (*object.HashMap, error)

func (*BaseClient) RequestRaw

func (client *BaseClient) RequestRaw(url string, params *object.StringMap, method string, options *object.HashMap, outHeader interface{}, outBody interface{}) (interface{}, error)

func (*BaseClient) SafeRequest

func (client *BaseClient) SafeRequest(url string, params *object.StringMap, method string, option *object.HashMap, outHeader interface{}, outBody interface{}) (interface{}, error)

func (*BaseClient) StreamDownload

func (client *BaseClient) StreamDownload(requestDownload *power.RequestDownload, filePath string) (int64, error)

func (*BaseClient) Wrap

func (client *BaseClient) Wrap(endpoint string) string

type MiddlewareLogMiddleware

type MiddlewareLogMiddleware struct {
	*BaseClient
}

----------------------------------------------------------------------

Jump to

Keyboard shortcuts

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