Documentation ¶
Index ¶
- Constants
- Variables
- func NewDescriptionRequest(labelOverride string) filter.ReadableValue[string]
- func NewLevelRequest(labelOverride string) filter.ReadableValue[string]
- func NewNameRequest(labelOverride string) filter.ReadableValue[string]
- func NewOccurrenceRequest(labelOverride string) filter.ReadableValue[string]
- func NewOriginRequest(labelOverride string) filter.ReadableValue[string]
- func NewWebEngine() *gin.Engine
- func RegisterSwaggerDocsRoute(docsRouter gin.IRouter)
- func ToFilterOption(options filter.RequestOption, _ int) query.FilterOption
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 ¶
View Source
var ( OperatorEqual = filter.ReadableValue[filter.CompareOperator]{ Label: LabelIsEqualTo, Value: filter.CompareOperatorIsEqualTo, } OperatorContains = filter.ReadableValue[filter.CompareOperator]{ Label: LabelContains, Value: filter.CompareOperatorContains, } OperatorBeginsWith = filter.ReadableValue[filter.CompareOperator]{ Label: LabelBeginsWith, Value: filter.CompareOperatorBeginsWith, } OperatorAfter = filter.ReadableValue[filter.CompareOperator]{ Label: LabelAfter, Value: filter.CompareOperatorAfterDate, } OperatorBefore = filter.ReadableValue[filter.CompareOperator]{ Label: LabelBefore, Value: filter.CompareOperatorBeforeDate, } )
Compare operators
Functions ¶
func NewDescriptionRequest ¶ added in v0.2.0
func NewDescriptionRequest(labelOverride string) filter.ReadableValue[string]
func NewLevelRequest ¶ added in v0.2.0
func NewLevelRequest(labelOverride string) filter.ReadableValue[string]
func NewNameRequest ¶ added in v0.2.0
func NewNameRequest(labelOverride string) filter.ReadableValue[string]
func NewOccurrenceRequest ¶ added in v0.2.0
func NewOccurrenceRequest(labelOverride string) filter.ReadableValue[string]
func NewOriginRequest ¶ added in v0.2.0
func NewOriginRequest(labelOverride string) filter.ReadableValue[string]
func NewWebEngine ¶
func ToFilterOption ¶ added in v0.2.0
func ToFilterOption(options filter.RequestOption, _ int) query.FilterOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.