command

package
v0.0.0-...-4eeaa7b Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package command is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Run() error
}

func NewCommand

func NewCommand(httpServer HttpServer) Command

type HttpServer

type HttpServer interface {
	HandleFunc(pattern string, handlerFunc http.HandlerFunc)
	Run(port string) error
}

func NewHttpServer

func NewHttpServer() 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) HandleFunc

func (m *MockHttpServer) HandleFunc(pattern string, handlerFunc http.HandlerFunc)

HandleFunc mocks base method

func (*MockHttpServer) Run

func (m *MockHttpServer) Run(port string) error

Run mocks base method

type MockHttpServerMockRecorder

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

MockHttpServerMockRecorder is the mock recorder for MockHttpServer

func (*MockHttpServerMockRecorder) HandleFunc

func (mr *MockHttpServerMockRecorder) HandleFunc(pattern, handlerFunc interface{}) *gomock.Call

HandleFunc indicates an expected call of HandleFunc

func (*MockHttpServerMockRecorder) Run

func (mr *MockHttpServerMockRecorder) Run(port interface{}) *gomock.Call

Run indicates an expected call of Run

Jump to

Keyboard shortcuts

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