options

package
v0.0.0-...-6b2b62e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package options provides the options for the program.

Index

Constants

View Source
const JWTKeyLength = 32

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() (string, error)

Types

type NodeOptions

type NodeOptions struct {
	EnableNat        bool
	EnableDevNetwork bool
	MaxPeers         int
	ConnsHi          int
	NetworkName      string
	JWTToken         string
	JWTKey           string
	SignKeyMap       map[string]string
	// contains filtered or unexported fields
}

func GetNodeOptions

func GetNodeOptions() *NodeOptions

func InitNodeOptions

func InitNodeOptions(configdir, peername string) (*NodeOptions, error)

func (*NodeOptions) SetSignKeyMap

func (opt *NodeOptions) SetSignKeyMap(keyname, addr string) error

func (*NodeOptions) WriteToConfig

func (opt *NodeOptions) WriteToConfig() error

Jump to

Keyboard shortcuts

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