odata

package
v0.0.0-...-2e9034d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expand

type Expand struct {
	Values []string
	// contains filtered or unexported fields
}

func NewExpand

func NewExpand(allowed []string) *Expand

func (*Expand) Add

func (e *Expand) Add(key string) bool

func (*Expand) IsAllowed

func (e *Expand) IsAllowed(key string) bool

func (Expand) IsZero

func (e Expand) IsZero() bool

func (*Expand) MarshalSchema

func (e *Expand) MarshalSchema() string

func (*Expand) Query

func (e *Expand) Query() string

type Filter

type Filter struct {
	Query string
}

func NewFilter

func NewFilter() *Filter

func (Filter) IsZero

func (f Filter) IsZero() bool

func (*Filter) MarshalSchema

func (f *Filter) MarshalSchema() string

func (*Filter) Set

func (f *Filter) Set(q string)

type OrderBy

type OrderBy struct {
	Values map[string]string
	// contains filtered or unexported fields
}

func NewOrderBy

func NewOrderBy(allowed []string) *OrderBy

func (*OrderBy) Add

func (o *OrderBy) Add(field string, order string) bool

func (*OrderBy) IsAllowed

func (o *OrderBy) IsAllowed(key string) bool

func (*OrderBy) MarshalSchema

func (o *OrderBy) MarshalSchema() string

type Pagination

type Pagination struct {
	Top  *Top  `schema:"$top,omitempty"`
	Skip *Skip `schema:"$skip,omitempty"`
}

func NewPagination

func NewPagination() Pagination

type Select

type Select struct {
	Values []string
	// contains filtered or unexported fields
}

func NewSelect

func NewSelect(allowed []string) *Select

func (*Select) Add

func (s *Select) Add(key string) bool

func (*Select) IsAllowed

func (s *Select) IsAllowed(key string) bool

func (Select) IsZero

func (s Select) IsZero() bool

func (*Select) MarshalSchema

func (t *Select) MarshalSchema() string

type Skip

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

func NewSkip

func NewSkip() *Skip

func (Skip) IsZero

func (t Skip) IsZero() bool

func (*Skip) MarshalSchema

func (t *Skip) MarshalSchema() string

func (*Skip) Set

func (t *Skip) Set(i int)

type Top

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

func NewTop

func NewTop() *Top

func (Top) IsZero

func (t Top) IsZero() bool

func (*Top) MarshalSchema

func (t *Top) MarshalSchema() string

func (*Top) Set

func (t *Top) Set(i int)

Jump to

Keyboard shortcuts

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