api

package
v0.0.0-...-2f5faa6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServer

type MockServer struct {
	mock.Mock
}

MockServer is an autogenerated mock type for the Server type

func NewMockServer

func NewMockServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServer

NewMockServer creates a new instance of MockServer. 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 (*MockServer) EXPECT

func (_m *MockServer) EXPECT() *MockServer_Expecter

func (*MockServer) ServeHTTP

func (_m *MockServer) ServeHTTP(_a0 http.ResponseWriter, _a1 *http.Request)

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

func (*MockServer) Start

func (_m *MockServer) Start()

Start provides a mock function with no fields

type MockServer_Expecter

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

func (*MockServer_Expecter) ServeHTTP

func (_e *MockServer_Expecter) ServeHTTP(_a0 interface{}, _a1 interface{}) *MockServer_ServeHTTP_Call

ServeHTTP is a helper method to define mock.On call

  • _a0 http.ResponseWriter
  • _a1 *http.Request

func (*MockServer_Expecter) Start

Start is a helper method to define mock.On call

type MockServer_ServeHTTP_Call

type MockServer_ServeHTTP_Call struct {
	*mock.Call
}

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

func (*MockServer_ServeHTTP_Call) Return

func (*MockServer_ServeHTTP_Call) Run

func (*MockServer_ServeHTTP_Call) RunAndReturn

type MockServer_Start_Call

type MockServer_Start_Call struct {
	*mock.Call
}

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

func (*MockServer_Start_Call) Return

func (*MockServer_Start_Call) Run

func (_c *MockServer_Start_Call) Run(run func()) *MockServer_Start_Call

func (*MockServer_Start_Call) RunAndReturn

func (_c *MockServer_Start_Call) RunAndReturn(run func()) *MockServer_Start_Call

type Server

type Server interface {
	http.Handler
	Start()
}

func NewServer

func NewServer() (Server, error)

Jump to

Keyboard shortcuts

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