server

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Policies     application.Policies
	Platform     application.Platform
	Cases        application.Cases
	Queues       application.Queues
	Dev          bool
	BehindProxy  bool
	Tracker      stats.Recorder
	TokenHandler TokenHandler
	ProjectAPI   api.ProjectAPI
	LambdaAPI    api.LambdaAPI
	UserAPI      api.UserAPI
	QueuesAPI    api.QueuesAPI
	PoliciesAPI  api.PoliciesAPI
}

func (*Server) Handler

func (srv *Server) Handler(ctx context.Context) http.Handler

type TokenHandler added in v0.3.6

type TokenHandler interface {
	ValidateToken(ctx context.Context, value *api.Token) error
}

Jump to

Keyboard shortcuts

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