endpoints

package
v0.0.0-...-036eace Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

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

func NewHTTPEndpoint(r *mux.Router, addr string) Endpoint

NewHTTPEndpoint returns the endpoint for HTTP transport

func NewHTTPSEndpoint

func NewHTTPSEndpoint(r *mux.Router, addr, certPath, keyPath, caPath string) (Endpoint, error)

NewHTTPSEndpoint returns the endpoint for HTTPS transport

func NewLocalEndpoint

func NewLocalEndpoint(r *mux.Router, unixSocketPath, owner string) Endpoint

NewLocalEndpoint returns the endpoint associated to local unix socket

type EndpointEngine

type EndpointEngine interface {
	Start(wg *sync.WaitGroup) error
	Stop() error
}

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

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) Name

func (m *MockEndpoint) Name() string

Name mocks base method

func (*MockEndpoint) Start

func (m *MockEndpoint) Start(data interface{}) error

Start mocks base method

func (*MockEndpoint) Stop

func (m *MockEndpoint) Stop() error

Stop 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

Jump to

Keyboard shortcuts

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