handler

package
v0.0.0-...-38d2dd1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SomethingWickedError = "Something wicked happened"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	ImagesDir() string
	ID() string
}

type Logger

type Logger interface {
	Info(interface{}, ...interface{})
	Warn(interface{}, ...interface{}) error
	Error(interface{}, ...interface{}) error
}

type Server

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

func New

func New(c Config, tv TokenValidator, m Model, lg Logger) (*Server, error)

type TokenValidator

type TokenValidator interface {
	Validate(token string, claims jwt.Claims) (*jwt.Token, error)
	IsAuthError(error) bool
}

Directories

Path Synopsis
Package image is a generated protocol buffer package.
Package image is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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