param

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID     string `json:"id,omitempty"`
	Secret string `json:"secret,omitempty"`
	Domain string `json:"domain,omitempty"`
	UserID string `json:"userID,omitempty"`
}

type Cursor

type Cursor[T any] struct {
	Field string `json:"field,omitempty"`
	Prev  T      `json:"prev,omitempty"`
	Size  int    `json:"size,omitempty"`
}

type CursorAny

type CursorAny = Cursor[any]

type Equal

type Equal[T any] struct {
	Field string `json:"field,omitempty"`
	Value T      `json:"value,omitempty"`
}

type Field

type Field[T any] struct {
	Field  string    `json:"field,omitempty"`
	Type   RangeType `json:"type,omitempty"`
	Value  T         `json:"value,omitempty"`
	Values []T       `json:"values,omitempty"`
}

type FilterType

type FilterType int8
const (
	FilterTypeEqual FilterType = iota
	FilterTypeNotEqual
	FilterTypeFuzzy
	FilterTypeIn
	FilterTypeNotIn
	FilterTypeIsNull
	FilterTypeIsNotNull
	FilterTypeRange = 16
)

func (FilterType) RangeType

func (f FilterType) RangeType() RangeType

type Id

type Id struct {
	Id uint `json:"id"`
}

type In

type In[T any] struct {
	Field  string `json:"field,omitempty"`
	Values []T    `json:"values,omitempty"`
}

type List

type List struct {
	PaginationEmbedded
	Filter map[string]Field[any] `json:"filter,omitempty"`
}

type OauthReq

type OauthReq struct {
	ResponseType   string `json:"responseType,omitempty"`
	ClientID       string `json:"clientID,omitempty"`
	Scope          string `json:"scope,omitempty"`
	RedirectURI    string `json:"redirectURI,omitempty"`
	State          string `json:"state,omitempty"`
	UserID         string `json:"userID,omitempty"`
	AccessTokenExp int64  `json:"accessTokenExp,omitempty"`
	ClientSecret   string `json:"clientSecret,omitempty"`
	Code           string `json:"code,omitempty"`
	RefreshToken   string `json:"refreshToken,omitempty"`
	GrantType      string `json:"grantType,omitempty"`
	AccessType     string `json:"accessType,omitempty"`
	LoginURI       string `json:"loginURI,omitempty"`
}

type Ordered

type Ordered interface {
	constraints.Ordered | time.Time | ~*time.Time
}

type Pageable added in v1.3.25

type Pageable interface {
	PageNo() int
	PageSize() int
	Sort() []Sort
}

type Pagination added in v1.3.25

type Pagination struct {
	No   int    `json:"no"`
	Size int    `json:"size"`
	Sort []Sort `json:"sort"`
}

type PaginationEmbedded added in v1.3.25

type PaginationEmbedded struct {
	PageNo   int    `json:"pageNo"`
	PageSize int    `json:"pageSize"`
	Sort     []Sort `json:"sort"`
}

type Range

type Range[T any] struct {
	Field string    `json:"field,omitempty"`
	Begin T         `json:"begin"`
	End   T         `json:"end"`
	Type  RangeType `json:"type,omitempty"`
}

type RangeAny

type RangeAny = Range[any]

type RangeInTwoField

type RangeInTwoField[T any] struct {
	BeginField string    `json:"beginField,omitempty"`
	EndField   string    `json:"endField,omitempty"`
	Begin      T         `json:"begin"`
	End        T         `json:"end"`
	Type       RangeType `json:"type,omitempty"`
}

type RangeInTwoFieldAny

type RangeInTwoFieldAny = RangeInTwoField[any]

type RangeType

type RangeType int8
const (
	RangeTypeContainsEnd RangeType = 1 << iota
	RangeTypeContainsBegin
	RangeTypeHasEnd
	RangeTypeHasBegin
)

func (RangeType) ContainsBegin

func (r RangeType) ContainsBegin() bool

func (RangeType) ContainsEnd

func (r RangeType) ContainsEnd() bool

func (RangeType) HasBegin

func (r RangeType) HasBegin() bool

func (RangeType) HasEnd

func (r RangeType) HasEnd() bool

type Sort

type Sort struct {
	Field string   `json:"field"`
	Type  SortType `json:"type,omitempty"`
}

type SortType

type SortType int
const (
	SortTypeAsc SortType
	SortTypeDesc
)

Jump to

Keyboard shortcuts

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