topic

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package topic is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Init(name string, req *admin.TopicInitRequest) error
	Get(topicName string) (m3topic.Topic, error)
	Delete(topicName string) error
	Add(topicName string, consumerSvc *topicpb.ConsumerService) error
}

Client provides the interface to interact with the topic APIs.

func NewClient

func NewClient(opts ...Option) (Client, error)

NewClient creates a new topic client.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Add

func (m *MockClient) Add(topicName string, consumerSvc *topicpb.ConsumerService) error

Add mocks base method.

func (*MockClient) Delete

func (m *MockClient) Delete(topicName string) error

Delete mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Get

func (m *MockClient) Get(topicName string) (topic.Topic, error)

Get mocks base method.

func (*MockClient) Init

func (m *MockClient) Init(name string, req *admin.TopicInitRequest) error

Init mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Add

func (mr *MockClientMockRecorder) Add(topicName, consumerSvc interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockClientMockRecorder) Delete

func (mr *MockClientMockRecorder) Delete(topicName interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockClientMockRecorder) Get

func (mr *MockClientMockRecorder) Get(topicName interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockClientMockRecorder) Init

func (mr *MockClientMockRecorder) Init(name, req interface{}) *gomock.Call

Init indicates an expected call of Init.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option provides an interface that can be used for setter options with the constructor

func WithClient

func WithClient(cl m3admin.Client) Option

WithClient configures an m3admin client.

func WithLogger

func WithLogger(logger *zap.Logger) Option

WithLogger is a setter to override the default logger

func WithURL

func WithURL(u string) Option

WithURL is a setter to override the default URL

Jump to

Keyboard shortcuts

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