mocks

package
v0.0.0-...-9a46783 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientIface

type ClientIface struct {
	mock.Mock
}

ClientIface is an autogenerated mock type for the ClientIface type

func (*ClientIface) Add

func (_m *ClientIface) Add(vb uint16, key string, flags int, exp int, body []byte) (*gomemcached.MCResponse, error)

Add provides a mock function with given fields: vb, key, flags, exp, body

func (*ClientIface) Append

func (_m *ClientIface) Append(vb uint16, key string, data []byte) (*gomemcached.MCResponse, error)

Append provides a mock function with given fields: vb, key, data

func (*ClientIface) Auth

func (_m *ClientIface) Auth(user string, pass string) (*gomemcached.MCResponse, error)

Auth provides a mock function with given fields: user, pass

func (*ClientIface) AuthList

func (_m *ClientIface) AuthList() (*gomemcached.MCResponse, error)

AuthList provides a mock function with given fields:

func (*ClientIface) AuthPlain

func (_m *ClientIface) AuthPlain(user string, pass string) (*gomemcached.MCResponse, error)

AuthPlain provides a mock function with given fields: user, pass

func (*ClientIface) AuthScramSha

func (_m *ClientIface) AuthScramSha(user string, pass string) (*gomemcached.MCResponse, error)

AuthScramSha provides a mock function with given fields: user, pass

func (*ClientIface) CAS

func (_m *ClientIface) CAS(vb uint16, k string, f memcached.CasFunc, initexp int) (*gomemcached.MCResponse, error)

CAS provides a mock function with given fields: vb, k, f, initexp

func (*ClientIface) CASNext

func (_m *ClientIface) CASNext(vb uint16, k string, exp int, state *memcached.CASState) bool

CASNext provides a mock function with given fields: vb, k, exp, state

func (*ClientIface) Close

func (_m *ClientIface) Close() error

Close provides a mock function with given fields:

func (*ClientIface) Decr

func (_m *ClientIface) Decr(vb uint16, key string, amt uint64, def uint64, exp int) (uint64, error)

Decr provides a mock function with given fields: vb, key, amt, def, exp

func (*ClientIface) Del

func (_m *ClientIface) Del(vb uint16, key string) (*gomemcached.MCResponse, error)

Del provides a mock function with given fields: vb, key

func (*ClientIface) EnableMutationToken

func (_m *ClientIface) EnableMutationToken() (*gomemcached.MCResponse, error)

EnableMutationToken provides a mock function with given fields:

func (*ClientIface) Get

func (_m *ClientIface) Get(vb uint16, key string) (*gomemcached.MCResponse, error)

Get provides a mock function with given fields: vb, key

func (*ClientIface) GetAndTouch

func (_m *ClientIface) GetAndTouch(vb uint16, key string, exp int) (*gomemcached.MCResponse, error)

GetAndTouch provides a mock function with given fields: vb, key, exp

func (*ClientIface) GetBulk

func (_m *ClientIface) GetBulk(vb uint16, keys []string, rv map[string]*gomemcached.MCResponse, subPaths []string) error

GetBulk provides a mock function with given fields: vb, keys, rv, subPaths

func (*ClientIface) GetMeta

func (_m *ClientIface) GetMeta(vb uint16, key string) (*gomemcached.MCResponse, error)

GetMeta provides a mock function with given fields: vb, key

func (*ClientIface) GetRandomDoc

func (_m *ClientIface) GetRandomDoc() (*gomemcached.MCResponse, error)

GetRandomDoc provides a mock function with given fields:

func (*ClientIface) GetSubdoc

func (_m *ClientIface) GetSubdoc(vb uint16, key string, subPaths []string) (*gomemcached.MCResponse, error)

GetSubdoc provides a mock function with given fields: vb, key, subPaths

func (*ClientIface) Hijack

func (_m *ClientIface) Hijack() io.ReadWriteCloser

Hijack provides a mock function with given fields:

func (*ClientIface) Incr

func (_m *ClientIface) Incr(vb uint16, key string, amt uint64, def uint64, exp int) (uint64, error)

Incr provides a mock function with given fields: vb, key, amt, def, exp

func (*ClientIface) NewUprFeed

func (_m *ClientIface) NewUprFeed() (*memcached.UprFeed, error)

NewUprFeed provides a mock function with given fields:

func (*ClientIface) NewUprFeedIface

func (_m *ClientIface) NewUprFeedIface() (memcached.UprFeedIface, error)

NewUprFeedIface provides a mock function with given fields:

func (*ClientIface) NewUprFeedWithConfig

func (_m *ClientIface) NewUprFeedWithConfig(ackByClient bool) (*memcached.UprFeed, error)

NewUprFeedWithConfig provides a mock function with given fields: ackByClient

func (*ClientIface) NewUprFeedWithConfigIface

func (_m *ClientIface) NewUprFeedWithConfigIface(ackByClient bool) (memcached.UprFeedIface, error)

NewUprFeedWithConfigIface provides a mock function with given fields: ackByClient

func (*ClientIface) Observe

func (_m *ClientIface) Observe(vb uint16, key string) (memcached.ObserveResult, error)

Observe provides a mock function with given fields: vb, key

func (*ClientIface) ObserveSeq

func (_m *ClientIface) ObserveSeq(vb uint16, vbuuid uint64) (*memcached.ObserveSeqResult, error)

ObserveSeq provides a mock function with given fields: vb, vbuuid

func (*ClientIface) Receive

func (_m *ClientIface) Receive() (*gomemcached.MCResponse, error)

Receive provides a mock function with given fields:

func (*ClientIface) ReceiveWithDeadline

func (_m *ClientIface) ReceiveWithDeadline(deadline time.Time) (*gomemcached.MCResponse, error)

ReceiveWithDeadline provides a mock function with given fields: deadline

func (*ClientIface) SelectBucket

func (_m *ClientIface) SelectBucket(bucket string) (*gomemcached.MCResponse, error)

SelectBucket provides a mock function with given fields: bucket

func (*ClientIface) Send

Send provides a mock function with given fields: req

func (*ClientIface) Set

func (_m *ClientIface) Set(vb uint16, key string, flags int, exp int, body []byte) (*gomemcached.MCResponse, error)

Set provides a mock function with given fields: vb, key, flags, exp, body

func (*ClientIface) SetCas

func (_m *ClientIface) SetCas(vb uint16, key string, flags int, exp int, cas uint64, body []byte) (*gomemcached.MCResponse, error)

SetCas provides a mock function with given fields: vb, key, flags, exp, cas, body

func (*ClientIface) SetDeadline

func (_m *ClientIface) SetDeadline(t time.Time)

SetDeadline provides a mock function with given fields: t

func (*ClientIface) SetKeepAliveOptions

func (_m *ClientIface) SetKeepAliveOptions(interval time.Duration)

SetKeepAliveOptions provides a mock function with given fields: interval

func (*ClientIface) SetReadDeadline

func (_m *ClientIface) SetReadDeadline(t time.Time)

SetReadDeadline provides a mock function with given fields: t

func (*ClientIface) Stats

func (_m *ClientIface) Stats(key string) ([]memcached.StatValue, error)

Stats provides a mock function with given fields: key

func (*ClientIface) StatsMap

func (_m *ClientIface) StatsMap(key string) (map[string]string, error)

StatsMap provides a mock function with given fields: key

func (*ClientIface) StatsMapForSpecifiedStats

func (_m *ClientIface) StatsMapForSpecifiedStats(key string, statsMap map[string]string) error

StatsMapForSpecifiedStats provides a mock function with given fields: key, statsMap

func (*ClientIface) Transmit

func (_m *ClientIface) Transmit(req *gomemcached.MCRequest) error

Transmit provides a mock function with given fields: req

func (*ClientIface) TransmitResponse

func (_m *ClientIface) TransmitResponse(res *gomemcached.MCResponse) error

TransmitResponse provides a mock function with given fields: res

func (*ClientIface) TransmitWithDeadline

func (_m *ClientIface) TransmitWithDeadline(req *gomemcached.MCRequest, deadline time.Time) error

TransmitWithDeadline provides a mock function with given fields: req, deadline

func (*ClientIface) UprGetFailoverLog

func (_m *ClientIface) UprGetFailoverLog(vb []uint16) (map[uint16]*memcached.FailoverLog, error)

UprGetFailoverLog provides a mock function with given fields: vb

type UprFeedIface

type UprFeedIface struct {
	mock.Mock
}

UprFeedIface is an autogenerated mock type for the UprFeedIface type

func (*UprFeedIface) ClientAck

func (_m *UprFeedIface) ClientAck(event *memcached.UprEvent) error

ClientAck provides a mock function with given fields: event

func (*UprFeedIface) Close

func (_m *UprFeedIface) Close()

Close provides a mock function with given fields:

func (*UprFeedIface) CloseStream

func (_m *UprFeedIface) CloseStream(vbno uint16, opaqueMSB uint16) error

CloseStream provides a mock function with given fields: vbno, opaqueMSB

func (*UprFeedIface) Closed

func (_m *UprFeedIface) Closed() bool

Closed provides a mock function with given fields:

func (*UprFeedIface) GetError

func (_m *UprFeedIface) GetError() error

GetError provides a mock function with given fields:

func (*UprFeedIface) GetUprEventCh

func (_m *UprFeedIface) GetUprEventCh() <-chan *memcached.UprEvent

GetUprEventCh provides a mock function with given fields:

func (*UprFeedIface) GetUprStats

func (_m *UprFeedIface) GetUprStats() *memcached.UprStats

GetUprStats provides a mock function with given fields:

func (*UprFeedIface) StartFeed

func (_m *UprFeedIface) StartFeed() error

StartFeed provides a mock function with given fields:

func (*UprFeedIface) StartFeedWithConfig

func (_m *UprFeedIface) StartFeedWithConfig(datachan_len int) error

StartFeedWithConfig provides a mock function with given fields: datachan_len

func (*UprFeedIface) UprOpen

func (_m *UprFeedIface) UprOpen(name string, sequence uint32, bufSize uint32) error

UprOpen provides a mock function with given fields: name, sequence, bufSize

func (*UprFeedIface) UprOpenWithFeatures

func (_m *UprFeedIface) UprOpenWithFeatures(name string, sequence uint32, bufSize uint32, features memcached.UprFeatures) (error, memcached.UprFeatures)

UprOpenWithFeatures provides a mock function with given fields: name, sequence, bufSize, features

func (*UprFeedIface) UprOpenWithXATTR

func (_m *UprFeedIface) UprOpenWithXATTR(name string, sequence uint32, bufSize uint32) error

UprOpenWithXATTR provides a mock function with given fields: name, sequence, bufSize

func (*UprFeedIface) UprRequestStream

func (_m *UprFeedIface) UprRequestStream(vbno uint16, opaqueMSB uint16, flags uint32, vuuid uint64, startSequence uint64, endSequence uint64, snapStart uint64, snapEnd uint64) error

UprRequestStream provides a mock function with given fields: vbno, opaqueMSB, flags, vuuid, startSequence, endSequence, snapStart, snapEnd

Jump to

Keyboard shortcuts

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