Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSetup ¶
Handy implementation of SdkConfigSetup that simply setups the prefix inside the configuration
Types ¶
type CodecBuilder ¶
CodecBuilder represents a function that is used to return the proper application codec.
type Config ¶
type Config struct {
RPCNode string `toml:"rpc_node"`
ClientNode string `toml:"client_node"`
CosmosConfig CosmosConfig `toml:"cosmos"`
DatabaseConfig DatabaseConfig `toml:"database"`
}
Config defines all necessary juno configuration parameters.
func ParseString ¶
ParseString attempts to read and parse a Juno config from the given string bytes. An error reading or parsing the config results in a panic.
type CosmosConfig ¶
CosmosConfig contains the data to configure the Cosmos SDK
type DatabaseConfig ¶
type DatabaseConfig struct {
Type string `toml:"type"`
Config interface{} `toml:"config"`
}
DatabaseConfig represents a generic database configuration
type MongoDBConfig ¶
MongoDBConfig defines all database connection configuration parameters for a MongoDB database
type PostgreSQLConfig ¶
type PostgreSQLConfig struct {
Name string `toml:"name"`
Host string `toml:"host"`
Port uint64 `toml:"port"`
User string `toml:"user"`
Password string `toml:"password"`
SSLMode string `toml:"ssl_mode"`
Schema string `toml:"schema"`
}
PostgreSQLConfig defines all database connection configuration parameters for a PostgreSQL database
type SdkConfigSetup ¶
SdkConfigSetup represents a method that allows to customize the given sdk.Config. This should be used to set custom Bech32 addresses prefixes and other app-related configurations.