token

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	ID string
}

Machine the running PC

func (Machine) GetID

func (m Machine) GetID() string

GetID retrive the machine unique identifier

func (Machine) HashString

func (m Machine) HashString(input string) string

HashString a generic input string

type MockMachine

type MockMachine struct {
	ID string
}

MockMachine is the twin object

func (MockMachine) GetID

func (m MockMachine) GetID() string

GetID is the mock twin

func (MockMachine) HashString

func (m MockMachine) HashString(input string) string

HashString is the mock twin

type Tokenizer

type Tokenizer interface {
	GetID() string
	HashString(key, input string) string
}

Tokenizer is the token generator

Jump to

Keyboard shortcuts

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