Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Name string `toml:"name" env:"APP_NAME"` Http *Http `toml:"http"` Grpc *Grpc `toml:"grpc"` }
App结构体
type Grpc ¶
type Grpc struct { Host string `toml:"host" env:"GRPC_HOST"` Port int `toml:"port" env:"GRPC_PORT"` }
Grpc结构体
type Http ¶
type Http struct { Host string `toml:"host" env:"HTTP_HOST"` Port int `toml:"port" env:"HTTP_PORT"` }
Http结构体
type MongoDB ¶
type MongoDB struct { Username string `toml:"username" env:"MONGODB_USERNAME"` Password string `toml:"password" env:"MONGODB_PASSWORD"` Endpoints []string `toml:"endpoints" env:"MONGODB_ENDPOINTS" envSeparator:","` Database string `toml:"database" env:"MONGODB_DATABASE"` AuthSource string `toml:"authsource" env:"MONGODB_AUTHSOURCE"` // contains filtered or unexported fields }
MongoDB结构体
Click to show internal directories.
Click to hide internal directories.