blobcachecmd

package
v0.0.0-...-49942cb Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIAddr = "127.0.0.1:6025"

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Config

type Config struct {
	PrivateKey   []byte `yaml:"private_key,flow"`
	PersistDir   string `yaml:"persist_dir"`
	EphemeralDir string `yaml:"ephemeral_dir"`

	QUICAddr      string           `yaml:"quic_addr"`
	APIAddr       string           `yaml:"api_addr"`
	EphemeralCap  uint64           `yaml:"ephemeral_capacity"`
	PersistentCap uint64           `yaml:"persistent_capacity"`
	Peers         []peers.PeerSpec `yaml:"peers"`
}

func DefaultConfig

func DefaultConfig() *Config

type ConfigFile

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

func NewConfigFile

func NewConfigFile(p string) ConfigFile

func (ConfigFile) Load

func (cf ConfigFile) Load() (Config, error)

func (ConfigFile) Save

func (cf ConfigFile) Save(c Config) error

Jump to

Keyboard shortcuts

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