Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Online is when the implementation is permitted // to make outbound connections. Online Mode = "ONLINE" // Offline is when the implementation is not permitted // to make outbound connections. Offline Mode = "OFFLINE" // Mainnet is the ICON Mainnet. Mainnet string = "MAINNET" // Testnet is ICON Testnet3. Testnet string = "TESTNET" Ziconet string = "ZICON" Devnet string = "DEVNET" // ModeEnv is the environment variable read // to determine mode. ModeEnv = "MODE" // NetworkEnv is the environment variable // read to determine network. NetworkEnv = "NETWORK" // EndpointEnv is the environment variable // read to determine endpoint. EndpointEnv = "ENDPOINT" // DefaultEndPoint is the default endpoint for a running node. DefaultEndPoint = "http://localhost:9000" EndpointPrefix = "api" EndpointVersionPrefix = "v3" DebugPrefix = "debug" // PortEnv is the environment variable // read to determine the port for the Rosetta // implementation. PortEnv = "PORT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Mode Mode Network *types.NetworkIdentifier URL string DebugURL string Port int }
Configuration determines how
func LoadConfiguration ¶
func LoadConfiguration() (*Configuration, error)
LoadConfiguration attempts to create a new Configuration using the ENVs in the environment.
Click to show internal directories.
Click to hide internal directories.