service

package
v0.0.0-...-62d251f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointHandler

func EndpointHandler(service api.Service, client httpClient) http.HandlerFunc

func GetVersion

func GetVersion(fileName string) string

func NewService

func NewService(name, port, fileName, version string) (api.Service, error)

Types

type MockHTTPClient

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

MockHTTPClient is a mock of HTTPClient interface

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance

func (*MockHTTPClient) Do

func (m *MockHTTPClient) Do(arg0 *http.Request) (*http.Response, error)

Do mocks base method

func (*MockHTTPClient) EXPECT

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

type MockHTTPClientMockRecorder

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

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient

func (*MockHTTPClientMockRecorder) Do

func (mr *MockHTTPClientMockRecorder) Do(arg0 interface{}) *gomock.Call

Do indicates an expected call of Do

Jump to

Keyboard shortcuts

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