handlers

package
v0.0.0-...-4109721 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package handlers manages the different versions of the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIMux

func APIMux(cfg APIMuxConfig) *mux.Router

APIMux constructs a http.Handler with all application routes defined.

Types

type APIMuxConfig

type APIMuxConfig struct {
	Logger      *slog.Logger
	DomibusSOAP *domibus.SOAP
	Party       domibus.Party
	CatalogIDs  map[uuid.UUID]string
}

APIMuxConfig contains all the mandatory systems required by handlers.

func NewAPIMuxConfig

func NewAPIMuxConfig(logger *slog.Logger, domibusSOAP *domibus.SOAP, party domibus.Party,
	catalogIDs map[uuid.UUID]string) APIMuxConfig

NewAPIMuxConfig constructs a new mux config.

Directories

Path Synopsis
v1
Package v1 contains the full set of handler functions and routes supported by the v1 web api.
Package v1 contains the full set of handler functions and routes supported by the v1 web api.
budibasegrp
Package budibasegrp contains handlers proper to budibase, we may don't need it in the future.
Package budibasegrp contains handlers proper to budibase, we may don't need it in the future.
permitgrp
Package permitgrp maintains the group of handlers for permit access.
Package permitgrp maintains the group of handlers for permit access.

Jump to

Keyboard shortcuts

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