simple

package
v0.0.0-...-f66ea8c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(dir string, options ...Option) (*Engine, error)

func (*Engine) DeleteChunk

func (e *Engine) DeleteChunk(ctx context.Context, id string) error

func (*Engine) GetChunk

func (e *Engine) GetChunk(ctx context.Context, id string) (io.ReadCloser, error)

func (*Engine) GetEndpoints

func (e *Engine) GetEndpoints(ctx context.Context) ([]string, error)

func (*Engine) PutChunk

func (e *Engine) PutChunk(ctx context.Context, reader io.Reader, endpoints ...string) (string, error)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithIDGenerator

func WithIDGenerator(idGen idmint.Mint) Option

Jump to

Keyboard shortcuts

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