setting

package
v0.5.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionGetRequest

type CollectionGetRequest struct {
	model.SettingQueryInputs `path:",inline" query:",inline"`

	runtime.RequestCollection[
		predicate.Setting, setting.OrderOption,
	] `query:",inline"`

	IDs   []object.ID `query:"id,omitempty"`
	Names []string    `query:"name,omitempty"`
}

func (*CollectionGetRequest) Validate

func (r *CollectionGetRequest) Validate() error

type CollectionGetResponse

type CollectionGetResponse = []*model.SettingOutput

type CollectionUpdateRequest

type CollectionUpdateRequest struct {
	model.SettingUpdateInputs `path:",inline" json:",inline"`
}

func (*CollectionUpdateRequest) Validate

func (r *CollectionUpdateRequest) Validate() error

type GetRequest

type GetRequest struct {
	model.SettingQueryInput `path:",inline"`
}

type GetResponse

type GetResponse = *model.SettingOutput

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionGet

func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)

func (Handler) CollectionUpdate

func (h Handler) CollectionUpdate(req CollectionUpdateRequest) error

func (Handler) Get

func (h Handler) Get(req GetRequest) (GetResponse, error)

func (Handler) Kind

func (Handler) Kind() string

func (Handler) Update

func (h Handler) Update(req UpdateRequest) error

type UpdateRequest

type UpdateRequest struct {
	model.SettingUpdateInput `path:",inline" json:",inline"`
}

func (*UpdateRequest) Validate

func (r *UpdateRequest) Validate() error

Jump to

Keyboard shortcuts

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