transport

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStatus

type MockStatus struct {
	mock.Mock
}

MockStatus is an autogenerated mock type for the Status type

func NewMockStatus

func NewMockStatus(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStatus

NewMockStatus creates a new instance of MockStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockStatus) EXPECT

func (_m *MockStatus) EXPECT() *MockStatus_Expecter

func (*MockStatus) Register

func (_m *MockStatus) Register(_a0 string, _a1 interface{})

Register provides a mock function with given fields: _a0, _a1

type MockStatus_Expecter

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

func (*MockStatus_Expecter) Register

func (_e *MockStatus_Expecter) Register(_a0 interface{}, _a1 interface{}) *MockStatus_Register_Call

Register is a helper method to define mock.On call

  • _a0 string
  • _a1 interface{}

type MockStatus_Register_Call

type MockStatus_Register_Call struct {
	*mock.Call
}

MockStatus_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*MockStatus_Register_Call) Return

func (*MockStatus_Register_Call) Run

func (_c *MockStatus_Register_Call) Run(run func(_a0 string, _a1 interface{})) *MockStatus_Register_Call

func (*MockStatus_Register_Call) RunAndReturn

func (_c *MockStatus_Register_Call) RunAndReturn(run func(string, interface{})) *MockStatus_Register_Call

type MockWarning

type MockWarning struct {
	mock.Mock
}

MockWarning is an autogenerated mock type for the Warning type

func NewMockWarning

func NewMockWarning(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWarning

NewMockWarning creates a new instance of MockWarning. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockWarning) EXPECT

func (_m *MockWarning) EXPECT() *MockWarning_Expecter

func (*MockWarning) Register

func (_m *MockWarning) Register(_a0 string, _a1 interface{})

Register provides a mock function with given fields: _a0, _a1

type MockWarning_Expecter

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

func (*MockWarning_Expecter) Register

func (_e *MockWarning_Expecter) Register(_a0 interface{}, _a1 interface{}) *MockWarning_Register_Call

Register is a helper method to define mock.On call

  • _a0 string
  • _a1 interface{}

type MockWarning_Register_Call

type MockWarning_Register_Call struct {
	*mock.Call
}

MockWarning_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*MockWarning_Register_Call) Return

func (*MockWarning_Register_Call) Run

func (_c *MockWarning_Register_Call) Run(run func(_a0 string, _a1 interface{})) *MockWarning_Register_Call

func (*MockWarning_Register_Call) RunAndReturn

func (_c *MockWarning_Register_Call) RunAndReturn(run func(string, interface{})) *MockWarning_Register_Call

type Status

type Status interface {
	Register(string, interface{})
}

type Transport

type Transport struct {
	Status
	Warning
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(ctx context.Context, usecase *usecase.Service, logger logging.Logger, cfg *config.Config) *Transport

func (*Transport) StartServer

func (t *Transport) StartServer(cfg *config.Config)

func (*Transport) Stop

func (t *Transport) Stop()

type Warning

type Warning interface {
	Register(string, interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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