Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteRequest ¶
type DeleteResult ¶
type GetRequest ¶
type GetResult ¶
type GetResult struct { HTTPStatus int TusResumable string Body io.ReadCloser ContentLength int }
type HeadRequest ¶
type HeadResult ¶
type Option ¶
type Option func(*Options)
func WithChunkSize ¶
func WithHTTPClient ¶
func WithSchema ¶
type OptionsResult ¶
type PatchRequest ¶
type PatchResult ¶
type PostRequest ¶
type PostResult ¶
type TusClient ¶
type TusClient interface { Options(context.Context) (*OptionsResult, error) Post(context.Context, *PostRequest) (*PostResult, error) Head(context.Context, *HeadRequest) (*HeadResult, error) Patch(context.Context, *PatchRequest) (*PatchResult, error) Delete(context.Context, *DeleteRequest) (*DeleteResult, error) Get(context.Context, *GetRequest) (*GetResult, error) MultipleUploadFromFile(ctx context.Context, filePath string) (location string, err error) MultipleUploadFromReader(ctx context.Context, r io.Reader) (location string, err error) DownloadToFile(ctx context.Context, location, dest string) error DownloadToWriter(ctx context.Context, location string, w io.Writer) error }
Click to show internal directories.
Click to hide internal directories.