stage2

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package stage2 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRedis

type FakeRedis struct {
	Schemas map[string]string
}

func NewFakeRedis

func NewFakeRedis() *FakeRedis

func (*FakeRedis) GetSchema

func (f *FakeRedis) GetSchema(key string) (schema string, exists bool)

func (*FakeRedis) PutSchema

func (f *FakeRedis) PutSchema(key string, schema string)

type MockPrisma

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

MockPrisma is a mock of Prisma interface

func NewMockPrisma

func NewMockPrisma(ctrl *gomock.Controller) *MockPrisma

NewMockPrisma creates a new mock instance

func (*MockPrisma) EXPECT

func (m *MockPrisma) EXPECT() *MockPrismaMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPrisma) Query

func (m *MockPrisma) Query(request []byte) []byte

Query mocks base method

type MockPrismaMockRecorder

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

MockPrismaMockRecorder is the mock recorder for MockPrisma

func (*MockPrismaMockRecorder) Query

func (mr *MockPrismaMockRecorder) Query(request interface{}) *gomock.Call

Query indicates an expected call of Query

type Prisma

type Prisma interface {
	Query(request []byte) (result []byte)
}

type Proxy

type Proxy struct {
	FakeRedis         *FakeRedis
	PrismaConnections map[string]Prisma
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy() *Proxy

func (*Proxy) ConfigureSchema

func (p *Proxy) ConfigureSchema(path string, schema string, prisma Prisma)

func (*Proxy) Request

func (p *Proxy) Request(path string, request []byte) (response []byte, err error)

Jump to

Keyboard shortcuts

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