holder

package
v0.0.0-...-41ff29f Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package snowflake is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdHolder

type EtcdHolder struct {
	PREFIX_ETCD_PATH string
	PATH_FOREVER     string
	// contains filtered or unexported fields
}

func (*EtcdHolder) Init

func (e *EtcdHolder) Init(addrs []string) (err error)

func (*EtcdHolder) ScheduledUploadData

func (e *EtcdHolder) ScheduledUploadData()

type Holder

type Holder interface {
	Init(addr []string) error
}

func NewEtcdHolder

func NewEtcdHolder(ip string, port int, srvName string, workerId uint32) (Holder, error)

type MockHolder

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

MockHolder is a mock of Holder interface

func NewMockHolder

func NewMockHolder(ctrl *gomock.Controller) *MockHolder

NewMockHolder creates a new mock instance

func (*MockHolder) EXPECT

func (m *MockHolder) EXPECT() *MockHolderMockRecorder

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

func (*MockHolder) GetWorkerId

func (m *MockHolder) GetWorkerId(ip string) int64

GetWorkerId mocks base method

func (*MockHolder) Init

func (m *MockHolder) Init(addrs []string) bool

Init mocks base method

type MockHolderMockRecorder

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

MockHolderMockRecorder is the mock recorder for MockHolder

func (*MockHolderMockRecorder) GetWorkerId

func (mr *MockHolderMockRecorder) GetWorkerId(ip interface{}) *gomock.Call

GetWorkerId indicates an expected call of GetWorkerId

func (*MockHolderMockRecorder) Init

func (mr *MockHolderMockRecorder) Init(addrs interface{}) *gomock.Call

Init indicates an expected call of Init

Jump to

Keyboard shortcuts

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