mock

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decrypt

type Decrypt struct {
	Dec string
	Err error
}

Decrypt structure used to adjust return values of Decrypt mock

type Encrypt

type Encrypt struct {
	Enc string
	Err error
}

Encrypt structure used to adjust return values of Encrypt mock

type Tokener

type Tokener struct {
	EncryptMock Encrypt
	DecryptMock Decrypt
}

Tokener structure implements Tokener interface

func (*Tokener) Decrypt

func (mock *Tokener) Decrypt(string) (string, error)

Decrypt mock return mock adjusted values

func (*Tokener) Encrypt

func (mock *Tokener) Encrypt(string) (string, error)

Encrypt mock return mock adjusted values

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL