v0

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	base.Config `yaml:",inline"`

	Validator Validator `yaml:"validator"`
	Init      base.Init `yaml:"init"`
	Host      base.Host `yaml:"host"`
}

Config is the user given configuration to do additional setup during serve.

func (*Config) Clone

func (c *Config) Clone() (version.Converter, error)

Clone returns an identical copy of the instance.

func (*Config) ConvertNext

func (c *Config) ConvertNext() (version.Converter, error)

ConvertNext converts the current config version to the next one.

func (*Config) Decode

func (c *Config) Decode(r io.Reader) error

Decode decodes the config file values from YAML.

type Validator

type Validator struct {
	Name   string `yaml:"name"`
	Staked string `yaml:"staked"`
}

Validator holds info related to validator settings.

Jump to

Keyboard shortcuts

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