controllers

package
v0.0.0-...-bc4752d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 3 Imported by: 0

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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