rest

package
v0.0.0-...-dae0b77 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(service TokenService) http.Handler

func NewTokenHandler

func NewTokenHandler(svc TokenService) *tokenHandler

Types

type TokenService

type TokenService interface {
	Create(token.AccessToken) *errors.Response
	GetById(string) (*token.AccessToken, *errors.Response)
	UpdateExpiration(token.AccessToken) *errors.Response
}

Jump to

Keyboard shortcuts

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