Documentation ¶
Index ¶
- type ApplicationPaymentInterface
- type BaseClient
- func (client *BaseClient) AuthSignRequest(context context.Context, config *kernel.Config, endpoint string, method string, ...) (*object.HashMap, error)
- func (client *BaseClient) AuthSignRequestSimple(config *kernel.Config, endpoint string, method string, ...) (*object.HashMap, error)
- func (client *BaseClient) AuthSignRequestV2(endpoint string, method string, params *object.HashMap, ...) (*object.HashMap, error)
- func (client *BaseClient) HttpUploadJson(ctx context.Context, url string, files *object.HashMap, ...) (interface{}, error)
- func (client *BaseClient) OverrideGetMiddlewareOfAccessToken()
- func (client *BaseClient) OverrideGetMiddlewares()
- func (client *BaseClient) PlainRequest(ctx context.Context, endpoint string, params *object.StringMap, method string, ...) (response *http.Response, err error)
- func (client *BaseClient) RegisterHttpMiddlewares()
- func (client *BaseClient) Request(ctx context.Context, endpoint string, params *object.StringMap, method string, ...) (response *http.Response, err error)
- func (client *BaseClient) RequestArray(ctx context.Context, url string, method string, options *object.HashMap, ...) (*object.HashMap, error)
- func (client *BaseClient) RequestRawXML(ctx context.Context, url string, params *object.StringMap, method string, ...) (interface{}, error)
- func (client *BaseClient) RequestV2(ctx context.Context, endpoint string, params *object.HashMap, method string, ...) (response *http.Response, err error)
- func (client *BaseClient) SafeRequest(ctx context.Context, url string, params *object.HashMap, method string, ...) (interface{}, error)
- func (client *BaseClient) SafeRequestV3(ctx context.Context, url string, params *object.StringMap, method string, ...) (interface{}, error)
- func (client *BaseClient) StreamDownload(ctx context.Context, requestDownload *power.RequestDownload, filePath string) (int64, error)
- func (client *BaseClient) Wrap(endpoint string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
type BaseClient struct { kernel.BaseClient RsaOAEP *sign.RSASigner App *ApplicationPaymentInterface }
func NewBaseClient ¶
func NewBaseClient(app *ApplicationPaymentInterface) (*BaseClient, error)
func (*BaseClient) AuthSignRequest ¶
func (*BaseClient) AuthSignRequestSimple ¶
func (*BaseClient) AuthSignRequestV2 ¶
func (*BaseClient) HttpUploadJson ¶
func (*BaseClient) OverrideGetMiddlewareOfAccessToken ¶
func (client *BaseClient) OverrideGetMiddlewareOfAccessToken()
func (*BaseClient) OverrideGetMiddlewares ¶
func (client *BaseClient) OverrideGetMiddlewares()
func (*BaseClient) PlainRequest ¶
func (*BaseClient) RegisterHttpMiddlewares ¶
func (client *BaseClient) RegisterHttpMiddlewares()
----------------------------------------------------------------------
func (*BaseClient) RequestArray ¶
func (*BaseClient) RequestRawXML ¶
func (*BaseClient) SafeRequest ¶
func (*BaseClient) SafeRequestV3 ¶
func (*BaseClient) StreamDownload ¶
func (client *BaseClient) StreamDownload(ctx context.Context, requestDownload *power.RequestDownload, filePath string) (int64, error)
func (*BaseClient) Wrap ¶
func (client *BaseClient) Wrap(endpoint string) string
Click to show internal directories.
Click to hide internal directories.