Documentation ¶
Overview ¶
Package server contains implementation of REST API server (HTTPServer) for the Insights report server. In current version, the following REST API endpoints are available:
Index ¶
Constants ¶
View Source
const (
// ContextKeyUser is a constant for user authentication token in request
ContextKeyUser = contextKey("user")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Address string `mapstructure:"address" toml:"address"` APIPrefix string `mapstructure:"api_prefix" toml:"api_prefix"` APISpecFile string `mapstructure:"api_spec_file" toml:"api_spec_file"` }
Configuration represents configuration of REST API HTTP server
type Identity ¶
type Identity struct { AccountNumber types.UserID `json:"account_number"` Internal Internal `json:"internal"` }
Identity contains internal user info
Click to show internal directories.
Click to hide internal directories.