seaweedfs

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `seaweedfs`

Variables

View Source
var (
	DefaultConfig = &Config{}
	DefaultClient = com.HTTPClientWithTimeout(10 * time.Second)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Scheme    string
	Master    string
	Filers    []*FilerURL
	ChunkSize int64
	Timeout   time.Duration
	// TTL Time to live.
	// 3m: 3 minutes
	// 4h: 4 hours
	// 5d: 5 days
	// 6w: 6 weeks
	// 7M: 7 months
	// 8y: 8 years
	TTL string
}

func (*Config) New

func (c *Config) New() (*goseaweedfs.Seaweed, error)

type FilerURL

type FilerURL struct {
	Public  string //Readonly URL
	Private string //Manage URL
}

type Seaweedfs

type Seaweedfs struct {
	*local.Filesystem
	// contains filtered or unexported fields
}

func NewSeaweedfs

func NewSeaweedfs(ctx context.Context, subdir string) *Seaweedfs

func (*Seaweedfs) FixURL

func (f *Seaweedfs) FixURL(content string, embedded ...bool) string

func (*Seaweedfs) FixURLWithParams

func (f *Seaweedfs) FixURLWithParams(content string, values url.Values, embedded ...bool) string

func (*Seaweedfs) Name

func (s *Seaweedfs) Name() string

func (*Seaweedfs) PublicURL

func (s *Seaweedfs) PublicURL(dstFile string) string

Jump to

Keyboard shortcuts

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