handler

package
v0.0.0-...-99a2c5e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	TripRepository    cargonaut.TripRepository
	UserRepository    cargonaut.UserRepository
	VehicleRepository cargonaut.VehicleRepository
	TokenBlacklist    cargonaut.TokenBlacklist
	// contains filtered or unexported fields
}

Handler provides all hhtp handlers.

func NewHandler

func NewHandler(log *log.Logger, secret []byte) (*Handler, error)

NewHandler creates a new set of handlers.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves all http routes.

Jump to

Keyboard shortcuts

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