memcachemock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MockupServer = mockServer{
					// contains filtered or unexported fields
	}

	ErrMockNotFound        = errors.New("mock not found")
	ErrInterfaceConvertion = errors.New("interface convertion error")
)

Functions

This section is empty.

Types

type Args

type Args []interface{}

type Mock

type Mock struct {
	Operation Operation
	Args      Args

	Return Return
	Error  error
}

type Operation

type Operation string
const (
	OperationFlushAll       Operation = "FlushAll"
	OperationGet            Operation = "Get"
	OperationGetMulti       Operation = "GetMulti"
	OperationSet            Operation = "Set"
	OperationAdd            Operation = "Add"
	OperationReplace        Operation = "Replace"
	OperationCompareAndSwap Operation = "CompareAndSwap"
	OperationDelete         Operation = "Delete"
	OperationIncrement      Operation = "Increment"
	OperationDecrement      Operation = "Decrement"
	OperationExists         Operation = "Exists"
	OperationTouch          Operation = "Touch"
	OperationDeleteAll      Operation = "DeleteAll"
	OperationPing           Operation = "Ping"
)

type Return

type Return interface{}

Jump to

Keyboard shortcuts

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