config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogDirectory  = fmt.Sprintf("%s/.%s/logs", homeDir, constants.AppName)
	DefaultLoggingConfig = logging.Config{
		RotatingWriterConfig: logging.RotatingWriterConfig{
			MaxSize:   64 * units.MiB,
			MaxFiles:  32,
			MaxAge:    7,
			Directory: DefaultLogDirectory,
			Compress:  false,
		},
		DisplayLevel: logging.Info,
		LogLevel:     logging.Debug,
	}
)

Functions

This section is empty.

Types

type Builder added in v0.1.1

type Builder struct {
	Node          avaids.NodeID `json:"nodeId"`
	Address       ids.Address   `json:"address"`
	PrivateSeed   string        `json:"privateSeed"` // optional, only for local test
	KesEndpoint   string        `json:"kesEndpoint"`
	KesKeyName    string        `json:"kesKeyName"`
	KesCipherText string        `json:"kesCipherText"`
	KesSignature  string        `json:"kesSignature"`

	Signer key.Signer `json:"-"`
}

func (*Builder) Valid added in v0.1.1

func (b *Builder) Valid(ctx context.Context) error

type Config

type Config struct {
	Logger      logging.Config `json:"logger"`
	RPCAddr     string         `json:"rpcAddr"`
	POSEndpoint string         `json:"posEndpoint"` // persistent data source endpoint
	Builder     *Builder       `json:"builder"`
}

func New

func New(ctx context.Context, data []byte) (*Config, error)

Jump to

Keyboard shortcuts

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