Documentation ¶
Index ¶
- func CertificatesRoutes(certificateManager *certificates.CertificateValidator, parent logging.Logger) routing.Matcher
- func RevocationsRoutes(revocationsManager *revocations.RevocationsManager, parent logging.Logger) routing.Matcher
- func SendError(logger logging.Logger, err *HTTPError) routing.Matcher
- type HTTPError
- type HealthVO
- type Server
- type StatusVO
- type SuccessHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificatesRoutes ¶
func CertificatesRoutes(certificateManager *certificates.CertificateValidator, parent logging.Logger) routing.Matcher
func RevocationsRoutes ¶
func RevocationsRoutes(revocationsManager *revocations.RevocationsManager, parent logging.Logger) routing.Matcher
Types ¶
type HTTPError ¶
type HTTPError struct { Code int `json:"code"` Message string `json:"message"` Details string `json:"details,omitempty"` }
func BadRequest ¶
func BadRequest() *HTTPError
func MethodNotAllowed ¶
func MethodNotAllowed() *HTTPError
func Unauthorized ¶
func Unauthorized() *HTTPError
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config *config.ServerConfig, store store.ServerStore, certificateManager *certificates.CertificateValidator, revocations *revocations.RevocationsManager, tokenManager *tokens.TokenManager, logger logging.Logger) *Server
func (*Server) InternalRoutes ¶
func (*Server) TokensResource ¶
type SuccessHandler ¶
type SuccessHandler func(token *jwt.Token) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.