client

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

Eventbus SDK for Vanus

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventbusIDIfNotSet

func GetEventbusIDIfNotSet(ctx context.Context, endpoints []string, opts *api.EventbusOptions) error

Types

type Client

type Client interface {
	Eventbus(ctx context.Context, opts ...api.EventbusOption) api.Eventbus
	Disconnect(ctx context.Context)
}

func Connect

func Connect(endpoints []string) 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) Disconnect

func (m *MockClient) Disconnect(ctx context.Context)

Disconnect 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) Eventbus

func (m *MockClient) Eventbus(ctx context.Context, opts ...api.EventbusOption) api.Eventbus

Eventbus mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Disconnect

func (mr *MockClientMockRecorder) Disconnect(ctx interface{}) *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockClientMockRecorder) Eventbus

func (mr *MockClientMockRecorder) Eventbus(ctx interface{}, opts ...interface{}) *gomock.Call

Eventbus indicates an expected call of Eventbus.

Directories

Path Synopsis
examples
internal
net
pkg
api
Package api is a generated GoMock package.
Package api is a generated GoMock package.

Jump to

Keyboard shortcuts

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