server

package
v0.0.0-...-8d921ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func SendError

func SendError(logger logging.Logger, err *HTTPError) 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 NotFound

func NotFound() *HTTPError

func Unauthorized

func Unauthorized() *HTTPError

func (*HTTPError) Error

func (err *HTTPError) Error() string

type HealthVO

type HealthVO struct {
	MaxProcs     int
	NumGoroutine int
	Memory       runtime.MemStats
}

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 (s *Server) InternalRoutes() routing.Matcher

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

func (*Server) TokensResource

func (s *Server) TokensResource() routing.Matcher

type StatusVO

type StatusVO struct {
	Version string `json:"version"`
}

type SuccessHandler

type SuccessHandler func(token *jwt.Token) (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL