util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment                  string   `mapstructure:"ENVIRONMENT"`
	DBDriver                     string   `mapstructure:"DB_DRIVER"`
	DBSource                     string   `mapstructure:"DB_SOURCE"`
	RedisConnURL                 string   `mapstructure:"REDIS_CONN_URL"`
	DBMigrationURL               string   `mapstructure:"DB_MIGRATION_URL"`
	EthereumRPCURL               string   `mapstructure:"ETHEREUM_RPC_URL"`
	HTTPServerAddress            string   `mapstructure:"HTTP_SERVER_ADDRESS"`
	GRPCServerAddress            string   `mapstructure:"GRPC_SERVER_ADDRESS"`
	AuthServiceGRPCServerAddress string   `mapstructure:"AUTH_SERVICE_GRPC_SERVER_ADDRESS"`
	ServiceAuthPublicKeys        []string `mapstructure:"SERVICE_AUTH_PUBLIC_KEYS"`
	ServiceAuthPrivateKeys       []string `mapstructure:"SERVICE_AUTH_PRIVATE_KEYS"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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