utils

package
v0.0.0-...-42a8572 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateServerConfiguration

func GenerateServerConfiguration(address, privateKeyFile, configFile, serverName string) error

func GetServerAddr

func GetServerAddr(server *config.Server) (*snet.Addr, error)

func LoadChain

func LoadChain(chainFilePath string) (chain *config.Chain, err error)

func LoadServerConfiguration

func LoadServerConfiguration(configurationPath string) (*config.Server, error)

func LoadServersConfigurationList

func LoadServersConfigurationList(configurationPath string) (servers []config.Server, err error)

func ReadPrivateKey

func ReadPrivateKey(privateKeyFile string) (ed25519.PrivateKey, error)

func SaveChain

func SaveChain(chainFile string, chain *config.Chain, maxLength int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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