config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chains

func Chains() []string

func Load

func Load() error

func Save

func Save() error

func SetDefault

func SetDefault(cfg *Config)

Types

type AuthorityDB

type AuthorityDB struct {
	Name   string `json:"name"`
	Url    string `json:"url"`
	Enable bool   `json:"enable"`
}

type Config

type Config struct {
	Password                 string                       `json:"password,omitempty"`
	Proxy                    string                       `json:"proxy,omitempty"`
	RequestTimeout           int64                        `json:"request_timeout,omitempty"`
	MaxRetries               int                          `json:"max_retries,omitempty"`
	Nodes                    map[string][]aggregator.Node `json:"nodes"`
	PhishingDb               []string                     `json:"phishing_db"`
	PhishingDbUpdateInterval int64                        `json:"phishing_db_update_interval"`
	Mrt                      int64                        `json:"mrt"`
	AuthorityDB              []AuthorityDB                `json:"authority_db"`
}

func Clone

func Clone() Config

func Default

func Default() *Config

func LoadDefault

func LoadDefault() *Config

func (Config) HasChain

func (c Config) HasChain(chain string) bool

Jump to

Keyboard shortcuts

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