api

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessEndpoint

func AccessEndpoint(router *httprouter.Router, _ configuration.Config, _ util.Jwt, guard *authorization.Guard)

func AllowedEndpoints

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

func CheckEndpoints

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

func PoliciesEndpoints

func PoliciesEndpoints(router *httprouter.Router, _ configuration.Config, _ util.Jwt, guard *authorization.Guard)

func Router

func Router(config configuration.Config, guard *authorization.Guard) http.Handler

func Start

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

starts http server; if wg is not nil it will be set as done when the server is stopped

func TestEndpoints

func TestEndpoints(router *httprouter.Router, _ configuration.Config, _ util.Jwt, guard *authorization.Guard)

Types

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