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 ¶
func (m *MockHttpServer) EXPECT() *MockHttpServerMockRecorder
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
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
Click to show internal directories.
Click to hide internal directories.