handler

package
v0.0.0-...-2039734 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Tally it - daemon

A tool for hack spaces, clubs, groups and companies to manage a digital tally sheet.

Schemes: http Version: 0.1

Consumes: - application/json

Produces: - application/json

Security: - bearer

SecurityDefinitions:

bearer:
 type: apiKey
 name: Authorization
 in: header

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(repo *sql.Mysql, ldap *ldap.LDAP, authorizer authorizer) *Handler

func (*Handler) Routes

func (h *Handler) Routes() []*router.Route

type JWTAuthorizer

type JWTAuthorizer struct {
	Secret string
}

func (*JWTAuthorizer) Authorize

func (a *JWTAuthorizer) Authorize(fn handlerFunc, authType authType) handlerFunc

Jump to

Keyboard shortcuts

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