Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Service string = "dauth" Version string = "dev" Hostname, _ = os.Hostname() ServiceID string = uuid.NewString() )
inject by ldflags e.g. go build -ldflags "-X github.com/dizzrt/dauth/internal/conf.Version=x.y.z"
View Source
var ProviderSet = wire.NewSet( GetAppConfig, )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
App App `mapstructure:"app"`
ENV string
Address string
DB DB `mapstructure:"db"`
Redis Redis `mapstructure:"redis"`
Log Log `mapstructure:"log"`
Server Server `mapstructure:"server"`
Tracing Tracing `mapstructure:"tracing"`
Registry Registry `mapstructure:"registry"`
}
func GetAppConfig ¶
func GetAppConfig() *AppConfig
type GRPCServer ¶
type GRPCServer struct {
Addr string `mapstructure:"addr"`
}
type HTTPServer ¶
type HTTPServer struct {
Addr string `mapstructure:"addr"`
}
type Server ¶
type Server struct {
GRPC GRPCServer `mapstructure:"grpc"`
HTTP HTTPServer `mapstructure:"http"`
}
Click to show internal directories.
Click to hide internal directories.