query

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttemptQuery

type AttemptQuery struct {
	Query

	EventId    *string
	EndpointId *string
	Status     *string
}

func (*AttemptQuery) WhereMap

func (q *AttemptQuery) WhereMap() map[string]interface{}

type EndpointQuery

type EndpointQuery struct {
	Query

	WorkspaceId *string
}

func (*EndpointQuery) WhereMap

func (q *EndpointQuery) WhereMap() map[string]interface{}

type EventQuery

type EventQuery struct {
	Query
}

func (EventQuery) WhereMap

func (q EventQuery) WhereMap() map[string]interface{}

type Order

type Order struct {
	Column string
	Sort   Sort
}

func (Order) String

func (o Order) String() string

type PluginQuery added in v0.2.0

type PluginQuery struct {
	Query

	WorkspaceId *string
	EndpointId  *string
	Enabled     *bool
}

func (*PluginQuery) WhereMap added in v0.2.0

func (q *PluginQuery) WhereMap() map[string]interface{}

type Query

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

func (*Query) Limit

func (q *Query) Limit() int64

func (*Query) Offset

func (q *Query) Offset() int64

func (*Query) Order

func (q *Query) Order(column string, sort Sort)

func (*Query) Orders

func (q *Query) Orders() []*Order

func (*Query) Page

func (q *Query) Page(pageNo, pageSize uint64)

func (*Query) WhereMap

func (q *Query) WhereMap() map[string]interface{}

type Queryer

type Queryer interface {
	Offset() int64
	Limit() int64
	WhereMap() map[string]interface{}
	Orders() []*Order
}

type Sort

type Sort = string
const (
	ASC  Sort = "ASC"
	DESC Sort = "DESC"
)

type SourceQuery

type SourceQuery struct {
	Query

	WorkspaceId *string
}

func (*SourceQuery) WhereMap

func (q *SourceQuery) WhereMap() map[string]interface{}

type WorkspaceQuery

type WorkspaceQuery struct {
	Query
}

func (*WorkspaceQuery) WhereMap

func (q *WorkspaceQuery) WhereMap() map[string]interface{}

Jump to

Keyboard shortcuts

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