api

package
v0.0.0-...-1d74c4b Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Router *mux.Router
	// contains filtered or unexported fields
}

API represents the structure of the API

func New

func New(config *Config, db db.DB, mail *mail.Client, router *mux.Router) (*API, error)

New returns the api settings

type Config

type Config struct {
	Domain        string `yaml:"domain"`
	SigningSecret string `yaml:"signing_secret"`
}

Config represents the API configuration

type ContextKey

type ContextKey string

ContextKey implements type for context key

const ContextJWTKey ContextKey = "jwt"

ContextJWTKey is the key for the jwt context value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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