sia

package
v0.0.0-...-173a128 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(settings BackendSettings) (*Backend, error)

func (*Backend) Available

func (b *Backend) Available() bool

func (*Backend) ReadAt

func (b *Backend) ReadAt(buf []byte, offset int64) (int, error)

func (*Backend) Shutdown

func (b *Backend) Shutdown(thorough bool) error

func (*Backend) Wait

func (b *Backend) Wait()

func (*Backend) WriteAt

func (b *Backend) WriteAt(buf []byte, offset int64) (int, error)

type BackendSettings

type BackendSettings struct {
	Size             uint64
	HardMaxCached    int
	SoftMaxCached    int
	IdleInterval     time.Duration
	SiaDaemonAddress string
	SiaPasswordFile  string
}

Jump to

Keyboard shortcuts

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