server

package
Version: v0.0.0-...-7bce887 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

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

AuthServer stores tokens issued for users

func NewAuthServer

func NewAuthServer() AuthServer

NewAuthServer creates a new AuthServer

func (AuthServer) LogIn

LogIn logs issues a token valid for 24 hours

func (AuthServer) Validate

Validate checks if token is valid and was issued by this server

Source Files

Jump to

Keyboard shortcuts

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