Documentation
¶
Index ¶
- type Option
- type Otel
- type SDKClient
- func (c *SDKClient) ActionCb(ctx context.Context, req model.ActionCbRequest) error
- func (c *SDKClient) AppID() string
- func (c *SDKClient) Conversion(ctx context.Context, req model.ConversionRequest, resp interface{}) (*model.ResponseHeader, error)
- func (c *SDKClient) Do(ctx context.Context, req *model.Request, resp interface{}) (*model.ResponseHeader, error)
- func (c *SDKClient) Get(ctx context.Context, reqUrl string, resp interface{}) error
- func (c *SDKClient) OAuth(ctx context.Context, req model.RequestBody, resp interface{}) error
- func (c *SDKClient) Post(ctx context.Context, reqUrl string, bs []byte, resp interface{}) error
- func (c *SDKClient) Secret() string
- func (c *SDKClient) WithSpan(ctx context.Context, req *http.Request, resp interface{}, payload []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.4.1
type Option = func(c *SDKClient)
func WithHttpClient ¶ added in v1.4.1
func WithTracer ¶ added in v1.4.1
type SDKClient ¶
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient object
func NewSDKClient ¶
NewSDKClient init sdk client
func (*SDKClient) Conversion ¶ added in v1.2.8
func (c *SDKClient) Conversion(ctx context.Context, req model.ConversionRequest, resp interface{}) (*model.ResponseHeader, error)
func (*SDKClient) Do ¶
func (c *SDKClient) Do(ctx context.Context, req *model.Request, resp interface{}) (*model.ResponseHeader, error)
Do execute api request
Click to show internal directories.
Click to hide internal directories.