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
Click to show internal directories.
Click to hide internal directories.