as_conf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorOpen  = "Unable to open AS conf"
	ErrorParse = "Unable to parse AS conf"
)
View Source
const (
	MasterKey0 = "master0.key"
	MasterKey1 = "master1.key"
)
View Source
const CfgName = "as.yml"

Variables

This section is empty.

Functions

func Load

func Load(path string) error

func Parse

func Parse(data []byte, path string) error

Types

type ASConf

type ASConf struct {
	CertChainVersion int  `yaml:"CertChainVersion"`
	PathSegmentTTL   int  `yaml:"PathSegmentTTL"`
	PropagateTime    int  `yaml:"PropagateTime"`
	RegisterPath     bool `yaml:"RegisterPath"`
	RegisterTime     int  `yaml:"RegisterTime"`
}
var CurrConf *ASConf

func (ASConf) String

func (a ASConf) String() string

type MasterKeys added in v0.2.0

type MasterKeys struct {
	Key0 common.RawBytes
	Key1 common.RawBytes
}

func LoadMasterKeys added in v0.2.0

func LoadMasterKeys(keyDir string) (*MasterKeys, error)

Jump to

Keyboard shortcuts

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