mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: MIT Imports: 9 Imported by: 0

README

Files in this directory have been automatically generated using mockery.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory struct {
	mock.Mock
}

func (*ClientFactory) GetLocalClient

func (_m *ClientFactory) GetLocalClient() interface{}

GetLocalClient provides a mock function with given fields:

func (*ClientFactory) MakeRemoteClient

func (_m *ClientFactory) MakeRemoteClient(client thrift.TChanClient) interface{}

MakeRemoteClient provides a mock function with given fields: client

type Logger

type Logger struct {
	mock.Mock
}

func (*Logger) Debug

func (_m *Logger) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*Logger) Error

func (_m *Logger) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*Logger) Fatal

func (_m *Logger) Fatal(args ...interface{})

Fatal provides a mock function with given fields: args

func (*Logger) Fatalf

func (_m *Logger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Logger) Fields

func (_m *Logger) Fields() bark.Fields

Fields provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*Logger) Infof

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

func (*Logger) Panic

func (_m *Logger) Panic(args ...interface{})

Panic provides a mock function with given fields: args

func (*Logger) Panicf

func (_m *Logger) Panicf(format string, args ...interface{})

Panicf provides a mock function with given fields: format, args

func (*Logger) Warn

func (_m *Logger) Warn(args ...interface{})

Warn provides a mock function with given fields: args

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

func (*Logger) WithField

func (_m *Logger) WithField(key string, value interface{}) bark.Logger

WithField provides a mock function with given fields: key, value

func (*Logger) WithFields

func (_m *Logger) WithFields(keyValues bark.LogFields) bark.Logger

WithFields provides a mock function with given fields: keyValues

type Ringpop

type Ringpop struct {
	mock.Mock
}

func (*Ringpop) App

func (_m *Ringpop) App() string

App provides a mock function with given fields:

func (*Ringpop) Bootstrap

func (_m *Ringpop) Bootstrap(opts *swim.BootstrapOptions) ([]string, error)

Bootstrap provides a mock function with given fields: opts

func (*Ringpop) Checksum

func (_m *Ringpop) Checksum() (uint32, error)

Checksum provides a mock function with given fields:

func (*Ringpop) CountReachableMembers

func (_m *Ringpop) CountReachableMembers() (int, error)

CountReachableMembers provides a mock function with given fields:

func (*Ringpop) Destroy

func (_m *Ringpop) Destroy()

Destroy provides a mock function with given fields:

func (*Ringpop) Forward

func (_m *Ringpop) Forward(dest string, keys []string, request []byte, service string, endpoint string, format tchannel.Format, opts *forward.Options) ([]byte, error)

Forward provides a mock function with given fields: dest, keys, request, service, endpoint, format, opts

func (*Ringpop) GetReachableMembers

func (_m *Ringpop) GetReachableMembers() ([]string, error)

GetReachableMembers provides a mock function with given fields:

func (*Ringpop) HandleOrForward

func (_m *Ringpop) HandleOrForward(key string, request []byte, response *[]byte, service string, endpoint string, format tchannel.Format, opts *forward.Options) (bool, error)

HandleOrForward provides a mock function with given fields: key, request, response, service, endpoint, format, opts

func (*Ringpop) Lookup

func (_m *Ringpop) Lookup(key string) (string, error)

Lookup provides a mock function with given fields: key

func (*Ringpop) LookupN

func (_m *Ringpop) LookupN(key string, n int) ([]string, error)

LookupN provides a mock function with given fields: key, n

func (*Ringpop) RegisterListener

func (_m *Ringpop) RegisterListener(l events.EventListener)

RegisterListener provides a mock function with given fields: l

func (*Ringpop) Uptime

func (_m *Ringpop) Uptime() (time.Duration, error)

Uptime provides a mock function with given fields:

func (*Ringpop) WhoAmI

func (_m *Ringpop) WhoAmI() (string, error)

WhoAmI provides a mock function with given fields:

type StatsReporter

type StatsReporter struct {
	mock.Mock
}

func (*StatsReporter) IncCounter

func (_m *StatsReporter) IncCounter(name string, tags bark.Tags, value int64)

IncCounter provides a mock function with given fields: name, tags, value

func (*StatsReporter) RecordTimer

func (_m *StatsReporter) RecordTimer(name string, tags bark.Tags, d time.Duration)

RecordTimer provides a mock function with given fields: name, tags, d

func (*StatsReporter) UpdateGauge

func (_m *StatsReporter) UpdateGauge(name string, tags bark.Tags, value int64)

UpdateGauge provides a mock function with given fields: name, tags, value

type SwimNode

type SwimNode struct {
	mock.Mock
}

func (*SwimNode) Bootstrap

func (_m *SwimNode) Bootstrap(opts *swim.BootstrapOptions) ([]string, error)

Bootstrap provides a mock function with given fields: opts

func (*SwimNode) CountReachableMembers

func (_m *SwimNode) CountReachableMembers() int

CountReachableMembers provides a mock function with given fields:

func (*SwimNode) Destroy

func (_m *SwimNode) Destroy()

Destroy provides a mock function with given fields:

func (*SwimNode) GetChecksum added in v0.3.0

func (_m *SwimNode) GetChecksum() uint32

GetChecksum provides a mock function with given fields:

func (*SwimNode) GetReachableMembers

func (_m *SwimNode) GetReachableMembers() []string

GetReachableMembers provides a mock function with given fields:

func (*SwimNode) MemberStats

func (_m *SwimNode) MemberStats() swim.MemberStats

MemberStats provides a mock function with given fields:

func (*SwimNode) ProtocolStats

func (_m *SwimNode) ProtocolStats() swim.ProtocolStats

ProtocolStats provides a mock function with given fields:

func (*SwimNode) Ready

func (_m *SwimNode) Ready() bool

Ready provides a mock function with given fields:

func (*SwimNode) RegisterListener

func (_m *SwimNode) RegisterListener(l swim.EventListener)

RegisterListener provides a mock function with given fields: l

type TChanClient

type TChanClient struct {
	mock.Mock
}

func (*TChanClient) Call

func (_m *TChanClient) Call(ctx thrift.Context, serviceName string, methodName string, req athrift.TStruct, resp athrift.TStruct) (bool, error)

Call provides a mock function with given fields: ctx, serviceName, methodName, req, resp

Jump to

Keyboard shortcuts

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