httpserver

package
v0.0.0-...-a6185cc Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: server.go

Generated by this command:

mockgen -source=server.go -destination=mock_server.go -package=httpserver

Package httpserver is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer interface {
	Run() error
	Shutdown(ctx context.Context) error
}

func NewHttpServer

func NewHttpServer(port string) HttpServer

type MockHttpServer

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

MockHttpServer is a mock of HttpServer interface.

func NewMockHttpServer

func NewMockHttpServer(ctrl *gomock.Controller) *MockHttpServer

NewMockHttpServer creates a new mock instance.

func (*MockHttpServer) EXPECT

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

func (*MockHttpServer) Run

func (m *MockHttpServer) Run() error

Run mocks base method.

func (*MockHttpServer) Shutdown

func (m *MockHttpServer) Shutdown(ctx context.Context) error

Shutdown mocks base method.

type MockHttpServerMockRecorder

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

MockHttpServerMockRecorder is the mock recorder for MockHttpServer.

func (*MockHttpServerMockRecorder) Run

Run indicates an expected call of Run.

func (*MockHttpServerMockRecorder) Shutdown

func (mr *MockHttpServerMockRecorder) Shutdown(ctx any) *gomock.Call

Shutdown indicates an expected call of Shutdown.

Jump to

Keyboard shortcuts

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