mock_handlers

package
v0.0.0-...-cf730da Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

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

Mock of Context interface

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

func (*MockContext) Abort

func (_m *MockContext) Abort()

func (*MockContext) BindJSON

func (_m *MockContext) BindJSON(_param0 interface{}) errors.Error

func (*MockContext) Cookie

func (_m *MockContext) Cookie(_param0 string) (string, error)

func (*MockContext) DeleteCookie

func (_m *MockContext) DeleteCookie(_param0 string)

func (*MockContext) EXPECT

func (_m *MockContext) EXPECT() *_MockContextRecorder

func (*MockContext) GetQuery

func (_m *MockContext) GetQuery(_param0 string) (string, bool)

func (*MockContext) GetString

func (_m *MockContext) GetString(_param0 string) (string, bool)

func (*MockContext) Next

func (_m *MockContext) Next()

func (*MockContext) Param

func (_m *MockContext) Param(_param0 string) string

func (*MockContext) Set

func (_m *MockContext) Set(_param0 string, _param1 interface{})

func (*MockContext) SetCookie

func (_m *MockContext) SetCookie(_param0 *http.Cookie)

func (*MockContext) ShouldGetString

func (_m *MockContext) ShouldGetString(_param0 string) (string, errors.Error)

type MockJsonResponse

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

Mock of JsonResponse interface

func NewMockJsonResponse

func NewMockJsonResponse(ctrl *gomock.Controller) *MockJsonResponse

func (*MockJsonResponse) EXPECT

func (_m *MockJsonResponse) EXPECT() *_MockJsonResponseRecorder

func (*MockJsonResponse) SetData

func (_m *MockJsonResponse) SetData(_param0 interface{})

func (*MockJsonResponse) SetError

func (_m *MockJsonResponse) SetError(_param0 errors.Error)

func (*MockJsonResponse) SetMessage

func (_m *MockJsonResponse) SetMessage(_param0 string)

func (*MockJsonResponse) SetStatus

func (_m *MockJsonResponse) SetStatus(_param0 int)

func (*MockJsonResponse) WriteJSON

func (_m *MockJsonResponse) WriteJSON(_param0 *gin_v1.Context)

Jump to

Keyboard shortcuts

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