core

package
v0.0.0-...-427c529 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipartReader

type MultipartReader struct {
	Boundary string
	// contains filtered or unexported fields
}

func NewMultipartReader

func NewMultipartReader() (mr *MultipartReader)

func (*MultipartReader) AddFile

func (mr *MultipartReader) AddFile(file *os.File) (err error)

func (*MultipartReader) AddReader

func (mr *MultipartReader) AddReader(r io.Reader, length int64)

func (*MultipartReader) Read

func (mr *MultipartReader) Read(p []byte) (n int, err error)

func (*MultipartReader) Readed

func (mr *MultipartReader) Readed() int64

func (*MultipartReader) SetupHTTPRequest

func (mr *MultipartReader) SetupHTTPRequest(req *http.Request)

type Seed

type Seed struct {
	Name    string
	Path    string
	Size    int64
	Hash    []byte `json:"-"`
	B36Hash string `json:"hash"`
}

func OpenSeed

func OpenSeed(path string) (s *Seed, err error)

func ParseSeed

func ParseSeed(b36hash, name string) (f *Seed, err error)

type SeedS

type SeedS struct {
	Name  string
	BDUSS string

	Key    []byte `json:"-"`
	B36Key string `json:"Key"`

	Seeds []*Seed

	CreatedAt time.Time
	UpdatedAt time.Time
}

func (*SeedS) AddSeed

func (seedS *SeedS) AddSeed(seed *Seed) error

func (*SeedS) AddSeeds

func (seedS *SeedS) AddSeeds(p string) (err error)

Jump to

Keyboard shortcuts

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