abs

package
v0.0.0-...-52a59c7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cid

type Cid = string

type Client

type Client interface {
	Upload(context.Context, Payload) (Metadata, error)
	Status(context.Context, Cid) (Metadata, error)
}

type ClientHub

type ClientHub struct {
	// contains filtered or unexported fields
}

func NewClientHub

func NewClientHub(clis ...Client) *ClientHub

func (*ClientHub) Status

func (c *ClientHub) Status(ctx context.Context, cid Cid) (ress []Result, errs []error)

func (*ClientHub) Upload

func (c *ClientHub) Upload(ctx context.Context, file Payload) (ress []Result, errs []error)

type Metadata

type Metadata = map[string]interface{}

type Payload

type Payload struct {
	IOReader io.Reader `json:"IOReader"`
}

type PinStatus

type PinStatus = string

type Result

type Result struct {
	Metadata map[string]interface{} `json:"metadata"`
}

Jump to

Keyboard shortcuts

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