Versions in this module Expand all Collapse all v1 v1.0.0 Feb 26, 2024 Changes in this version + type HttpServer struct + func NewHttpServer(approvalService *approval.ApprovalService, registry *prometheus.Registry, ...) *HttpServer + func (server *HttpServer) GetTokenRecoverApproval(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func (server *HttpServer) Ping(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func (server *HttpServer) Response(w http.ResponseWriter, code ResponseCode, data interface{}, err error) + func (server *HttpServer) Run(config config.HTTPConfig) error + func (server *HttpServer) RunMetrics(config config.MetricsConfig) error + func (server *HttpServer) Shutdown() error + type Response struct + Code ResponseCode + Data interface{} + Error string + func (r *Response) Marshal() string + type ResponseCode int + const InvalidRequest + const Success