seaweedfs

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: 16 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 NewEngine

func NewEngine(endpoint string, logger log.Logger) *Engine

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 PutChunkInfo

type PutChunkInfo struct {
	Size uint64 `json:"size"`
	ETag string `json:"eTag"`
}

Jump to

Keyboard shortcuts

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