handlers

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

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

Go to latest
Published: May 11, 2015 License: GPL-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	APRS_MESSAGES_QUEUE_NAME = "aprs_messages"
)

Variables

This section is empty.

Functions

func InitializeRouterForHealthCheckHandler

func InitializeRouterForHealthCheckHandler(r *mux.Router, pool *disque.DisquePool)

Add routes to router

func InitializeRouterForMessageHandlers

func InitializeRouterForMessageHandlers(r *mux.Router, parser *parser.AprsParser, pool *disque.DisquePool)

func InitializeRouterForQueryHandlers

func InitializeRouterForQueryHandlers(r *mux.Router, database *db.Database)

Types

type HealthCheckHandler

type HealthCheckHandler struct {
	// contains filtered or unexported fields
}

func NewHealthCheckHandler

func NewHealthCheckHandler(pool *disque.DisquePool) *HealthCheckHandler

func (*HealthCheckHandler) HealthCheck

func (h *HealthCheckHandler) HealthCheck(resp http.ResponseWriter, req *http.Request)

Examine and report the health of the component and dependencies

type MessageHandler

type MessageHandler struct {
	PoolTimeout time.Duration
	// contains filtered or unexported fields
}

func NewMessageHandler

func NewMessageHandler(parser *parser.AprsParser, pool *disque.DisquePool) *MessageHandler

func (*MessageHandler) SubmitAPRSMessage

func (m *MessageHandler) SubmitAPRSMessage(resp http.ResponseWriter, req *http.Request)

type QueryHandler

type QueryHandler struct {
	// contains filtered or unexported fields
}

type TokenVerificationMiddleware

type TokenVerificationMiddleware struct {
	// contains filtered or unexported fields
}

func NewTokenVerificationMiddleware

func NewTokenVerificationMiddleware() *TokenVerificationMiddleware

func (*TokenVerificationMiddleware) Initialize

func (t *TokenVerificationMiddleware) Initialize()

func (*TokenVerificationMiddleware) Run

Jump to

Keyboard shortcuts

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