client

package
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: 22 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	Success         = Result{}
	DeliveryTimeout = Result{errDeliveryTimeout, errors.New("DeliveryTimeout")}
)

Functions

This section is empty.

Types

type EventClient

type EventClient interface {
	Sender
}

func NewAwsLambdaClient

func NewAwsLambdaClient(accessKeyID, secretKeyID, arnStr string) EventClient

func NewGCloudFunctionClient

func NewGCloudFunctionClient(url, credentialJSON string) EventClient

func NewGRPCClient

func NewGRPCClient(url string) EventClient

func NewHTTPClient

func NewHTTPClient(url string) EventClient

type MockEventClient

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

MockEventClient is a mock of EventClient interface.

func NewMockEventClient

func NewMockEventClient(ctrl *gomock.Controller) *MockEventClient

NewMockEventClient creates a new mock instance.

func (*MockEventClient) EXPECT

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

func (*MockEventClient) Send

func (m *MockEventClient) Send(ctx context.Context, events ...*v2.Event) Result

Send mocks base method.

type MockEventClientMockRecorder

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

MockEventClientMockRecorder is the mock recorder for MockEventClient.

func (*MockEventClientMockRecorder) Send

func (mr *MockEventClientMockRecorder) Send(ctx interface{}, events ...interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockSender

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

MockSender is a mock of Sender interface.

func NewMockSender

func NewMockSender(ctrl *gomock.Controller) *MockSender

NewMockSender creates a new mock instance.

func (*MockSender) EXPECT

func (m *MockSender) EXPECT() *MockSenderMockRecorder

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

func (*MockSender) Send

func (m *MockSender) Send(ctx context.Context, events ...*v2.Event) Result

Send mocks base method.

type MockSenderMockRecorder

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

MockSenderMockRecorder is the mock recorder for MockSender.

func (*MockSenderMockRecorder) Send

func (mr *MockSenderMockRecorder) Send(ctx interface{}, events ...interface{}) *gomock.Call

Send indicates an expected call of Send.

type Result

type Result struct {
	StatusCode int
	Err        error
}

type Sender

type Sender interface {
	Send(ctx context.Context, events ...*ce.Event) Result
}

Jump to

Keyboard shortcuts

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