confile

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfig  = "conf.yaml"
	ConfigTemplete = `` /* 1212-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func FreeLocalPort

func FreeLocalPort(port uint32) bool

Types

type Access

type Access struct {
	Mode    string   `name:"mode" toml:"mode" yaml:"mode"`
	Account []string `name:"account" toml:"account" yaml:"account"`
}

type Application

type Application struct {
	Workspace   string `name:"workspace" toml:"workspace" yaml:"workspace"`
	Mode        string `name:"mode" toml:"mode" yaml:"mode"`
	Visibility  string `name:"visibility" toml:"visibility" yaml:"visibility"`
	Domainname  string `name:"domainname" toml:"domainname" yaml:"domainname"`
	Maxusespace uint64 `name:"maxusespace" toml:"maxusespace" yaml:"maxusespace"`
	Port        uint32 `name:"port" toml:"port" yaml:"port"`
}

type Chain

type Chain struct {
	Mnemonic string   `name:"mnemonic" toml:"mnemonic" yaml:"mnemonic"`
	Timeout  int      `name:"timeout" toml:"timeout" yaml:"timeout"`
	Rpc      []string `name:"rpc" toml:"rpc" yaml:"rpc"`
}

type Config

type Config struct {
	Application `yaml:"application"`
	Chain       `yaml:"chain"`
	User        `yaml:"user"`
	Access      `yaml:"access"`
	Shunt       `yaml:"shunt"`
}

func NewConfig

func NewConfig(config_file string) (*Config, error)

func NewConfigNotCheck

func NewConfigNotCheck(config_file string) (*Config, error)

func (*Config) IsHighPriorityAccount

func (c *Config) IsHighPriorityAccount(acc string) bool

type Shunt

type Shunt struct {
	Account []string `name:"account" toml:"account" yaml:"account"`
}

type User

type User struct {
	Account []string `name:"account" toml:"account" yaml:"account"`
}

Jump to

Keyboard shortcuts

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