mock

package
v0.0.0-...-2c216b4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegKeyDB

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

RegKeyDB mocks storage of registration keys. It is a slice that will hold the keys.

func (*RegKeyDB) CheckRegistrationKey

func (m *RegKeyDB) CheckRegistrationKey(key string) (bool, error)

CheckRegistrationKey checks for the presence of registration key key, removing it and returning success if it was present. If the key is not present in the slice, it returns false.

func (*RegKeyDB) Insert

func (m *RegKeyDB) Insert(key string)

insert inserts a registration key to RegKeyDB, if it's not already present.

Jump to

Keyboard shortcuts

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