mnemosynetest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mnemosyne

type Mnemosyne struct {
	mock.Mock
}

func (*Mnemosyne) Abandon

func (_m *Mnemosyne) Abandon(ctx context.Context, token string) error

Abandon provides a mock function with given fields: ctx, token

func (*Mnemosyne) Close

func (_m *Mnemosyne) Close() error

Close provides a mock function with given fields:

func (*Mnemosyne) Exists

func (_m *Mnemosyne) Exists(ctx context.Context, token string) (bool, error)

Exists provides a mock function with given fields: ctx, token

func (*Mnemosyne) FromContext

func (_m *Mnemosyne) FromContext(ctx context.Context) (*mnemosynerpc.Session, error)

FromContext provides a mock function with given fields: ctx

func (*Mnemosyne) Get

func (_m *Mnemosyne) Get(ctx context.Context, token string) (*mnemosynerpc.Session, error)

Get provides a mock function with given fields: ctx, token

func (*Mnemosyne) SetValue

func (_m *Mnemosyne) SetValue(ctx context.Context, token string, key string, value string) (map[string]string, error)

SetValue provides a mock function with given fields: ctx, token, key, value

func (*Mnemosyne) Start

func (_m *Mnemosyne) Start(ctx context.Context, subjectID string, subjectClient string, bag map[string]string) (*mnemosynerpc.Session, error)

Start provides a mock function with given fields: ctx, subjectID, subjectClient, bag

type RPCClient

type RPCClient struct {
	mock.Mock
}

func (*RPCClient) Abandon

Abandon provides a mock function with given fields: ctx, in, opts

func (*RPCClient) Context

func (_m *RPCClient) Context(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*mnemosynerpc.ContextResponse, error)

Context provides a mock function with given fields: ctx, in, opts

func (*RPCClient) Delete

Delete provides a mock function with given fields: ctx, in, opts

func (*RPCClient) Exists

Exists provides a mock function with given fields: ctx, in, opts

func (*RPCClient) Get

Get provides a mock function with given fields: ctx, in, opts

func (*RPCClient) List

List provides a mock function with given fields: ctx, in, opts

func (*RPCClient) SetValue

SetValue provides a mock function with given fields: ctx, in, opts

func (*RPCClient) Start

Start provides a mock function with given fields: ctx, in, opts

type RPCServer

type RPCServer struct {
	mock.Mock
}

func (*RPCServer) Abandon

Abandon provides a mock function with given fields: _a0, _a1

func (*RPCServer) Context

Context provides a mock function with given fields: _a0, _a1

func (*RPCServer) Delete

Delete provides a mock function with given fields: _a0, _a1

func (*RPCServer) Exists

Exists provides a mock function with given fields: _a0, _a1

func (*RPCServer) Get

Get provides a mock function with given fields: _a0, _a1

func (*RPCServer) List

List provides a mock function with given fields: _a0, _a1

func (*RPCServer) SetValue

SetValue provides a mock function with given fields: _a0, _a1

func (*RPCServer) Start

Start provides a mock function with given fields: _a0, _a1

type Storage

type Storage struct {
	mock.Mock
}

func (*Storage) Abandon

func (_m *Storage) Abandon(_a0 *mnemosynerpc.AccessToken) (bool, error)

Abandon provides a mock function with given fields: _a0

func (*Storage) Delete

func (_m *Storage) Delete(_a0 *mnemosynerpc.AccessToken, _a1 *time.Time, _a2 *time.Time) (int64, error)

Delete provides a mock function with given fields: _a0, _a1, _a2

func (*Storage) Exists

func (_m *Storage) Exists(_a0 *mnemosynerpc.AccessToken) (bool, error)

Exists provides a mock function with given fields: _a0

func (*Storage) Get

Get provides a mock function with given fields: _a0

func (*Storage) List

func (_m *Storage) List(_a0 int64, _a1 int64, _a2 *time.Time, _a3 *time.Time) ([]*mnemosynerpc.Session, error)

List provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Storage) SetValue

func (_m *Storage) SetValue(_a0 *mnemosynerpc.AccessToken, _a1 string, _a2 string) (map[string]string, error)

SetValue provides a mock function with given fields: _a0, _a1, _a2

func (*Storage) Setup

func (_m *Storage) Setup() error

Setup provides a mock function with given fields:

func (*Storage) Start

func (_m *Storage) Start(_a0 string, _a1 string, _a2 map[string]string) (*mnemosynerpc.Session, error)

Start provides a mock function with given fields: _a0, _a1, _a2

func (*Storage) TearDown

func (_m *Storage) TearDown() error

TearDown provides a mock function with given fields:

Jump to

Keyboard shortcuts

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