Documentation ¶
Overview ¶
Package controllers is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Endpoints returns the endpoints defined for the controller. Endpoints() []Endpoint }
Controller defines the endpoints for a HTTP API controller.
type Endpoint ¶
type Endpoint struct { Path string Method string Handler gin.HandlerFunc AuthorizationPolicies []string }
type MockController ¶
type MockController struct {
// contains filtered or unexported fields
}
MockController is a mock of Controller interface.
func NewMockController ¶
func NewMockController(ctrl *gomock.Controller) *MockController
NewMockController creates a new mock instance.
func (*MockController) EXPECT ¶
func (m *MockController) EXPECT() *MockControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockController) Endpoints ¶
func (m *MockController) Endpoints() []Endpoint
Endpoints mocks base method.
type MockControllerMockRecorder ¶
type MockControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerMockRecorder is the mock recorder for MockController.
func (*MockControllerMockRecorder) Endpoints ¶
func (mr *MockControllerMockRecorder) Endpoints() *gomock.Call
Endpoints indicates an expected call of Endpoints.
Click to show internal directories.
Click to hide internal directories.