mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

func (*Connection) Delete

func (_m *Connection) Delete(key datastore.Key) error

func (*Connection) Get

func (*Connection) Put

func (_m *Connection) Put(key datastore.Key, data datastore.JSONMessage) error

func (*Connection) Query

func (_m *Connection) Query(query interface{}) ([]datastore.JSONMessage, error)

type Context

type Context struct {
	mock.Mock
}

func (*Context) Connection

func (_m *Context) Connection() (datastore.Connection, error)

func (*Context) Metrics

func (_m *Context) Metrics() *metrics.Metrics

func (*Context) SetUser

func (_m *Context) SetUser(user string)

func (*Context) User

func (_m *Context) User() string

type Driver

type Driver struct {
	mock.Mock
}

func (*Driver) GetConnection

func (_m *Driver) GetConnection() (datastore.Connection, error)

GetConnection provides a mock function with given fields:

type EntityStore

type EntityStore struct {
	mock.Mock
}

func (*EntityStore) Delete

func (_m *EntityStore) Delete(ctx datastore.Context, key datastore.Key) error

func (*EntityStore) Get

func (*EntityStore) Put

Jump to

Keyboard shortcuts

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