perspective

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldTypeGroupBy = "groupBy"
	FieldTypeFilter  = "filter"
	FieldTypeStep    = "step"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionDeleteRequest

type CollectionDeleteRequest = model.PerspectiveDeleteInputs

type CollectionGetRequest

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

	runtime.RequestCollection[
		predicate.Perspective, perspective.OrderOption,
	] `query:",inline"`

	Name string `query:"name,omitempty"`
}

type CollectionGetResponse

type CollectionGetResponse = []*model.PerspectiveOutput

type CollectionRouteGetFieldValuesRequest

type CollectionRouteGetFieldValuesRequest struct {
	model.PerspectiveQueryInputs `path:",inline" query:",inline"`

	StartTime *time.Time        `query:"startTime"`
	EndTime   *time.Time        `query:"endTime"`
	FieldName types.FilterField `query:"fieldName"`
	FieldType FieldType         `query:"fieldType"`
	// contains filtered or unexported fields
}

func (*CollectionRouteGetFieldValuesRequest) Validate

type CollectionRouteGetFieldValuesResponse

type CollectionRouteGetFieldValuesResponse = []Value

type CollectionRouteGetFieldsRequest

type CollectionRouteGetFieldsRequest struct {
	model.PerspectiveQueryInputs `path:",inline" query:",inline"`

	StartTime *time.Time `query:"startTime"`
	EndTime   *time.Time `query:"endTime"`
	FieldType FieldType  `query:"fieldType"`
	// contains filtered or unexported fields
}

func (*CollectionRouteGetFieldsRequest) Validate

func (r *CollectionRouteGetFieldsRequest) Validate() error

type CollectionRouteGetFieldsResponse

type CollectionRouteGetFieldsResponse = []Field

type CreateRequest

type CreateRequest struct {
	model.PerspectiveCreateInput `path:",inline" json:",inline"`
}

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.PerspectiveOutput

type DeleteRequest

type DeleteRequest = model.PerspectiveDeleteInput

type Field

type Field struct {
	Label     string `json:"label"`
	FieldName string `json:"fieldName"`
}

type FieldType

type FieldType string

type GetRequest

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

type GetResponse

type GetResponse = *model.PerspectiveOutput

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionDelete

func (h Handler) CollectionDelete(req CollectionDeleteRequest) error

func (Handler) CollectionGet

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

func (Handler) Create

func (h Handler) Create(req CreateRequest) (CreateResponse, error)

func (Handler) Delete

func (h Handler) Delete(req DeleteRequest) 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.PerspectiveUpdateInput `path:",inline" json:",inline"`
}

func (*UpdateRequest) Validate

func (r *UpdateRequest) Validate() error

type Value

type Value struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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