Documentation ¶
Index ¶
- Constants
- type CollectionDeleteRequest
- type CollectionGetRequest
- type CollectionGetResponse
- type CollectionRouteGetFieldValuesRequest
- type CollectionRouteGetFieldValuesResponse
- type CollectionRouteGetFieldsRequest
- type CollectionRouteGetFieldsResponse
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type Field
- type FieldType
- type GetRequest
- type GetResponse
- type Handler
- func (h Handler) CollectionDelete(req CollectionDeleteRequest) error
- func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)
- func (h Handler) CollectionRouteGetFieldValues(req CollectionRouteGetFieldValuesRequest) (CollectionRouteGetFieldValuesResponse, int, error)
- func (h Handler) CollectionRouteGetFields(req CollectionRouteGetFieldsRequest) (CollectionRouteGetFieldsResponse, int, error)
- func (h Handler) Create(req CreateRequest) (CreateResponse, error)
- func (h Handler) Delete(req DeleteRequest) error
- func (h Handler) Get(req GetRequest) (GetResponse, error)
- func (Handler) Kind() string
- func (h Handler) Update(req UpdateRequest) error
- type UpdateRequest
- type Value
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 ¶
func (r *CollectionRouteGetFieldValuesRequest) Validate() error
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 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 (Handler) CollectionDelete ¶
func (h Handler) CollectionDelete(req CollectionDeleteRequest) error
func (Handler) CollectionGet ¶
func (h Handler) CollectionGet( req CollectionGetRequest, ) (CollectionGetResponse, int, error)
func (Handler) CollectionRouteGetFieldValues ¶
func (h Handler) CollectionRouteGetFieldValues( req CollectionRouteGetFieldValuesRequest, ) (CollectionRouteGetFieldValuesResponse, int, error)
func (Handler) CollectionRouteGetFields ¶
func (h Handler) CollectionRouteGetFields( req CollectionRouteGetFieldsRequest, ) (CollectionRouteGetFieldsResponse, 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) 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
Click to show internal directories.
Click to hide internal directories.