mocks

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMiddleware

type MockMiddleware struct {
}

func (*MockMiddleware) Authenticate

func (mi *MockMiddleware) Authenticate(c *gin.Context)

func (*MockMiddleware) Authorize

func (mi *MockMiddleware) Authorize(code string) gin.HandlerFunc

func (*MockMiddleware) HasPermission

func (mi *MockMiddleware) HasPermission(code string, permissions []string) bool

type MockRepo

type MockRepo struct {
}

func (*MockRepo) GetFile

func (mi *MockRepo) GetFile(file string) (string, error)

Jump to

Keyboard shortcuts

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