Documentation
¶
Index ¶
- func HandleOptionsRequest(w http.ResponseWriter, r *http.Request)
- func NewMetricRouter(config configuration.Configuration, router *mux.Router, db *db.TestDataCache, ...) *mux.Router
- func SetResponseHeaders(w http.ResponseWriter) http.ResponseWriter
- func VerifyToken(next http.HandlerFunc, config configuration.Configuration) http.HandlerFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleOptionsRequest ¶
func HandleOptionsRequest(w http.ResponseWriter, r *http.Request)
---- HandleOptionsRequest ----
func NewMetricRouter ¶
func NewMetricRouter(config configuration.Configuration, router *mux.Router, db *db.TestDataCache, metricService root.MetricService) *mux.Router
---- NewMetricRouter ----
func SetResponseHeaders ¶
func SetResponseHeaders(w http.ResponseWriter) http.ResponseWriter
---- SerResponseHeaders ----
func VerifyToken ¶
func VerifyToken(next http.HandlerFunc, config configuration.Configuration) http.HandlerFunc
---- VerifyToken ----
Types ¶
type Server ¶
type Server struct {
Router *mux.Router
Config configuration.Configuration
Db *db.TestDataCache
MetricService root.MetricService
}
---- Server struct for the MicroService ----
func NewServer ¶
func NewServer(config configuration.Configuration, db *db.TestDataCache, metricService root.MetricService) *Server
---- NewServer ----
Click to show internal directories.
Click to hide internal directories.