Documentation
¶
Overview ¶
Package endpoints is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint interface { Name() string Init() (interface{}, error) Start(data interface{}) error Stop() error }
Endpoint represents an endpoint were a REST service starts
func NewHTTPEndpoint ¶
NewHTTPEndpoint returns the endpoint for HTTP transport
func NewHTTPSEndpoint ¶
NewHTTPSEndpoint returns the endpoint for HTTPS transport
type EndpointEngine ¶
EndpointEngine represents the engine for a specific endpoint
func NewEndpointEngine ¶
func NewEndpointEngine(ep Endpoint) EndpointEngine
NewEndpointEngine returns a new instance of the endpoint
type MockEndpoint ¶
type MockEndpoint struct {
// contains filtered or unexported fields
}
MockEndpoint is a mock of Endpoint interface
func NewMockEndpoint ¶
func NewMockEndpoint(ctrl *gomock.Controller) *MockEndpoint
NewMockEndpoint creates a new mock instance
func (*MockEndpoint) EXPECT ¶
func (m *MockEndpoint) EXPECT() *MockEndpointMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEndpoint) Init ¶
func (m *MockEndpoint) Init() (interface{}, error)
Init mocks base method
func (*MockEndpoint) Start ¶
func (m *MockEndpoint) Start(data interface{}) error
Start mocks base method
type MockEndpointMockRecorder ¶
type MockEndpointMockRecorder struct {
// contains filtered or unexported fields
}
MockEndpointMockRecorder is the mock recorder for MockEndpoint
func (*MockEndpointMockRecorder) Init ¶
func (mr *MockEndpointMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockEndpointMockRecorder) Name ¶
func (mr *MockEndpointMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockEndpointMockRecorder) Start ¶
func (mr *MockEndpointMockRecorder) Start(data interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockEndpointMockRecorder) Stop ¶
func (mr *MockEndpointMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop