Documentation ¶
Index ¶
Constants ¶
View Source
const ServerLatestVersionString = "v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) IsAcceptingClients ¶
IsAcceptingClients conforms app.ServiceServer interface.
func (*Server) ServeHTTP ¶
func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP conforms Go's HTTP Handler interface.
func (*Server) ServerName ¶
ServerName conforms app.ServiceServer interface.
type ServerConfig ¶
type ServerConfig struct { ServePort int `env:"SERVE_PORT"` ServePath string `env:"SERVE_PATH"` // SwaggerUIAssetsDir provides information where the Swagger UI files are // located. If left empty, the server won't serve the Swagger UI. SwaggerUIAssetsDir string `env:"SWAGGER_UI_ASSETS_DIR"` // V1 contains configuration for version 1 of the API service V1 *ServerV1Config `env:"V1"` }
type ServerV1Config ¶
type ServerV1Config struct {
ServePath string `env:"SERVE_PATH"`
}
Click to show internal directories.
Click to hide internal directories.