Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { EnvName string `env:"ENV_NAME"` ServerAddress string `env:"SERVER_ADDRESS"` ProtoAddress string `env:"PROTO_ADDRESS"` PrimaryDBHost string `env:"DB_HOST"` PrimaryDBUser string `env:"DB_USER"` PrimaryDBPassword string `env:"DB_PASSWORD"` PrimaryDBName string `env:"DB_NAME"` PrimaryDBPort string `env:"DB_PORT"` ReplicaDBHost string `env:"DB_REPLICA_HOST"` ReplicaDBUser string `env:"DB_REPLICA_USER"` ReplicaDBPassword string `env:"DB_REPLICA_PASSWORD"` ReplicaDBName string `env:"DB_REPLICA_NAME"` ReplicaDBPort string `env:"DB_REPLICA_PORT"` MongoDBHost string `env:"MONGO_HOST"` MongoDBName string `env:"MONGO_NAME"` MongoDBUser string `env:"MONGO_USER"` MongoDBPassword string `env:"MONGO_PASSWORD"` MongoDBPort string `env:"MONGO_PORT"` }
Config is the top level configuration struct for the entire application.
type Server ¶
Server represents the http server for Ledger service.
func (*Server) ServerAddress ¶
ServerAddress returns is a convenience method to return the server address.
type ServerGRPC ¶ added in v1.10.0
ServerGRPC represents the gRPC server for Ledger service.
func NewServerGRPC ¶ added in v1.10.0
NewServerGRPC creates an instance of gRPC Server.
func (*ServerGRPC) ProtoAddress ¶ added in v1.10.0
func (sgrpc *ServerGRPC) ProtoAddress() string
ProtoAddress returns is a convenience method to return the proto server address.
Click to show internal directories.
Click to hide internal directories.