token

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

T wraps use cases around token object.

func (T) Disconnect

func (t T) Disconnect(id ulid.ID) error

Disconnect closes a token and all entities/listener/sync associated.

func (T) Get

func (t T) Get(id ulid.ID, addr string) (account.Token, error)

Get retrieves a token and check IP validity.

func (T) New

func (t T) New(accountPayload account.A, addr string) (account.Token, error)

New creates a new token from account payload A. Returns an error if the account is invalid.

Jump to

Keyboard shortcuts

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