Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessEndpoint

func AccessEndpoint(router *gin.Engine, _ configuration.Config, _ 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, _ 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, _ 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