Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigTemplate = `` /* 472-byte string literal not displayed */
DefaultConfigTemplate defines the configuration template.
View Source
const (
// DefaultGRPCAddress is the default address the gRPC server binds to.
DefaultGRPCAddress = "0.0.0.0:9900"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config defines the server's top level configuration. It includes the default app config from the SDK as well as the TLS configuration.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns server's default configuration.
func ParseConfig ¶
ParseConfig retrieves the default environment configuration for the application.
func (Config) ValidateBasic ¶
ValidateBasic returns an error any of the application configuration fields are invalid.
type TLSConfig ¶
type TLSConfig struct { // CertificatePath the file path for the certificate .pem file CertificatePath string `mapstructure:"certificate-path"` // KeyPath the file path for the key .pem file KeyPath string `mapstructure:"key-path"` }
TLSConfig defines the certificate and matching private key for the server.
func DefaultTLSConfig ¶
func DefaultTLSConfig() *TLSConfig
DefaultTLSConfig returns the default TLS configuration.
Click to show internal directories.
Click to hide internal directories.