sequencer

package
v0.2.217 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(config *config.Sequencer) (self *Client)

func (*Client) GetNonce

func (self *Client) GetNonce(ctx context.Context, signatureType bundlr.SignatureType, owner string) (out *responses.GetNonce, resp *resty.Response, err error)

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

func (self *Client) UploadInteraction(ctx context.Context, input json.Marshaler, options types.WriteInteractionOptions, signer bundlr.Signer) (out string, err error)

func (*Client) UploadReader

func (self *Client) UploadReader(ctx context.Context, reader io.Reader, mode types.BroadcastMode) (out *responses.Upload, resp *resty.Response, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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