apiMiddleware

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: EPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTrailingSlash

func AddTrailingSlash(apiBasePath string) echo.MiddlewareFunc

func Authentication added in v0.1.2

func Authentication(apiBasePath string) echo.MiddlewareFunc

func IsSkippableApiCall

func IsSkippableApiCall(req *http.Request, apiBasePath string) bool

func PanicHandler

func PanicHandler(next echo.HandlerFunc) echo.HandlerFunc

func ReadOnlyMode

func ReadOnlyMode(apiBasePath string) echo.MiddlewareFunc

func SetDatabaseServices added in v0.1.2

func SetDatabaseServices(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
	transientDbSvc *internalDbInfra.TransientDatabaseService,
	trailDbSvc *internalDbInfra.TrailDatabaseService,
) echo.MiddlewareFunc

func SetDefaultHeaders

func SetDefaultHeaders(apiBasePath string) echo.MiddlewareFunc

Types

type StackTrace

type StackTrace struct {
	// contains filtered or unexported fields
}

func (*StackTrace) String

func (st *StackTrace) String() string

Jump to

Keyboard shortcuts

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