token

package
Version: v0.0.0-...-24b4de3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: GPL-2.0-only Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Path string `json:"Path"`
	Bits int    `json:"Bits"`
}

func (*Info) EnsureExists

func (info *Info) EnsureExists() error

type Token

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

func NewTokener

func NewTokener(t Info) (*Token, error)

func (*Token) Decrypt

func (tk *Token) Decrypt(encoded string) (string, error)

func (*Token) Encrypt

func (tk *Token) Encrypt(token string) (string, error)

type Tokener

type Tokener interface {
	Encrypt(string) (string, error)
	Decrypt(string) (string, error)
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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