api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessEndpoint

func AccessEndpoint(router *gin.Engine, _ configuration.Config, jwt util.Jwt, guard *authorization.Guard)

func AllowedEndpoints

func AllowedEndpoints(router *gin.Engine, _ configuration.Config, jwt util.Jwt, guard *authorization.Guard)

func CheckEndpoints

func CheckEndpoints(router *gin.Engine, _ configuration.Config, jwt util.Jwt, guard *authorization.Guard)

func DocEndpoint added in v0.0.7

func DocEndpoint(router *gin.Engine, _ configuration.Config, _ util.Jwt, _ *authorization.Guard)

func ErrorHandler added in v0.0.8

func ErrorHandler(f func(error) int, sep string) gin.HandlerFunc

func PoliciesEndpoints

func PoliciesEndpoints(router *gin.Engine, _ configuration.Config, jwt util.Jwt, guard *authorization.Guard)

func Start

func Start(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, guard *authorization.Guard) (err error)

Start godoc @title Authorization API @description Allows definition of policies and checking of access rights. @BasePath / @securityDefinitions.apikey Bearer @in header @name Authorization

func TestEndpoints

func TestEndpoints(router *gin.Engine, _ configuration.Config, jwt util.Jwt, guard *authorization.Guard)

Types

type ErrorResponse added in v0.0.7

type ErrorResponse string

type KongMessage

type KongMessage struct {
	Result bool   `json:"result"`
	Error  string `json:"error"`
}

type TestResponse

type TestResponse struct {
	Get    bool `json:"GET"`
	Post   bool `json:"POST"`
	Put    bool `json:"PUT"`
	Patch  bool `json:"PATCH"`
	Delete bool `json:"DELETE"`
	Head   bool `json:"HEAD"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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