Documentation ¶
Index ¶
- 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) SetDebug(debug bool)
- func (c *SDKClient) SetHttpClient(httpClient *http.Client)
- func (c *SDKClient) WithSpan(ctx context.Context, req *http.Request, resp interface{}, payload []byte, ...) error
- func (c *SDKClient) WithTracer(namespace string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDKClient ¶
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient object
func NewSDKClient ¶
NewSDKClient init sdk client
func (*SDKClient) Conversion ¶
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
func (*SDKClient) SetHttpClient ¶
func (*SDKClient) WithTracer ¶
Click to show internal directories.
Click to hide internal directories.