Documentation ¶
Index ¶
- Variables
- type BaseClient
- type Client
- func (self *Client) GetNonce(ctx context.Context, signatureType bundlr.SignatureType, owner string) (out *responses.GetNonce, resp *resty.Response, err error)
- func (self *Client) Upload(ctx context.Context, item *bundlr.BundleItem, mode types.BroadcastMode) (out *responses.Upload, resp *resty.Response, err error)
- func (self *Client) UploadInteraction(ctx context.Context, input json.Marshaler, ...) (out string, err error)
- func (self *Client) UploadReader(ctx context.Context, reader io.Reader, mode types.BroadcastMode) (out *responses.Upload, resp *resty.Response, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToParse = errors.New("failed to parse response") ErrBufferTooSmall = errors.New("buffer too small") )
View Source
var (
MAX_DATA_ITEM_SIZE = 20480
)
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
type BaseClient struct {
// contains filtered or unexported fields
}
func (*BaseClient) GetClient ¶
func (self *BaseClient) GetClient() *resty.Client
type Client ¶
type Client struct {
*BaseClient
}
func (*Client) Upload ¶
func (self *Client) Upload(ctx context.Context, item *bundlr.BundleItem, mode types.BroadcastMode) (out *responses.Upload, resp *resty.Response, err error)
func (*Client) UploadInteraction ¶ added in v0.2.159
Click to show internal directories.
Click to hide internal directories.