web

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelIsEqualTo  = "is equal to"
	LabelContains   = "contains"
	LabelBeginsWith = "begins with"
	LabelAfter      = "after"
	LabelBefore     = "before"
)

Filter request options operator labels

View Source
const (
	// APIVersion is the current version of the web API
	APIVersion = "1.0"
)
View Source
const APIVersionKey = "api-version"

Variables

Compare operators

View Source
var (
	NameFilterRequestName = filter.ReadableValue[string]{
		Label: labelNameFilterField,
		Value: dtos.NameField,
	}
	DescriptionFilterRequestName = filter.ReadableValue[string]{
		Label: labelDescriptionFilterField,
		Value: dtos.DescriptionFieldName,
	}
	OccurrenceFilterRequestName = filter.ReadableValue[string]{
		Label: labelOccurrenceFilterField,
		Value: dtos.OccurrenceFieldName,
	}
	OriginFilterRequestName = filter.ReadableValue[string]{
		Label: labelOriginFilterField,
		Value: dtos.OriginFieldName,
	}
	LevelFilterRequestName = filter.ReadableValue[string]{
		Label: labelLevelFilterField,
		Value: dtos.LevelFieldName,
	}
)

filter names

Functions

func NewWebEngine

func NewWebEngine(httpConfig config.Http) *gin.Engine

func RegisterSwaggerDocsRoute

func RegisterSwaggerDocsRoute(docsRouter gin.IRouter, kc config.KeycloakConfig)

func ToFilterOption added in v0.2.0

func ToFilterOption(options filter.RequestOption, _ int) query.FilterOption

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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