serve

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransferSession

type TransferSession struct {
	Identifier string

	Password string
	// Meta data to be written. Call UpdateMetadata() after changing this!!
	Meta *dto.Meta
	// contains filtered or unexported fields
}

func NewSession

func NewSession(identifier string, password string, listen string, sigs chan os.Signal, done chan bool) (*TransferSession, error)

func (*TransferSession) EncryptBytesToFile

func (ts *TransferSession) EncryptBytesToFile(fileName string, contents []byte) error

func (*TransferSession) EncryptToFile

func (ts *TransferSession) EncryptToFile(fileName string) (WriteCloserWithSize, error)

func (*TransferSession) UpdateMetadata

func (ts *TransferSession) UpdateMetadata() error

func (*TransferSession) WithFrameworkAndWebDirectory

func (ts *TransferSession) WithFrameworkAndWebDirectory(frameworkName string, webDirectory string) error

type WriteCloserWithSize

type WriteCloserWithSize interface {
	io.WriteCloser
	Size() uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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