serve

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 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

	DumpAll bool
	// contains filtered or unexported fields
}

func NewSession

func NewSession(identifier string, password string, listen string, all bool, sigs chan os.Signal) (*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