seaweedfs

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `seaweedfs`

Variables

View Source
var DefaultConfig = &Config{}

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) MakeURL

func (c *Config) MakeURL(path string, args url.Values) string

func (*Config) New

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

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, typ 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