Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDomain         = "localhost"
	DefaultNetworkNodeURL = "https://buildnet.massa.net/api/v2"
	DefaultAPIPort        = 8080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	Domain       string
	APIPort      int
	NetworkInfos msConfig.NetworkInfos
	AllowList    []string
	BlockList    []string
}

func DefaultConfig

func DefaultConfig() *ServerConfig

func LoadServerConfig

func LoadServerConfig(configPath string) (*ServerConfig, error)

LoadServerConfig loads the server configuration from the given path, or returns the default configuration

Jump to

Keyboard shortcuts

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