authnapi

package module
v0.0.0-...-5ce947c Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouter

func InitRouter(router *mux.Router, s Service)

InitRouter is an entry point

Types

type Service

type Service interface {
	// Authenticate is called in POST /auth
	Authenticate(identifier, password string) entity.Response
	// Refresh is called in POST /auth/refresh
	Refresh(token string) entity.Response
}

Service is service

type Session

type Session interface {
	// ID is session ID
	ID() string
	// AccountID
	AccountID() string
}

Session has Account ID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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