mocks

package
v0.0.0-...-6dd59e7 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	GetCall struct {
		Args struct {
			Key string
		}
		Return struct {
			Value []byte
			Error error
		}
	}

	SetCall struct {
		Args struct {
			Key   string
			Value []byte
		}
		Return struct {
			Error error
		}
	}
}

func (*DataStore) Get

func (s *DataStore) Get(key string) ([]byte, error)

func (*DataStore) Set

func (s *DataStore) Set(key string, value []byte) error

type KeyGenerator

type KeyGenerator struct {
	NewCall struct {
		Return string
		Error  error
	}
}

func (KeyGenerator) New

func (g KeyGenerator) New() (string, error)

Jump to

Keyboard shortcuts

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