taskql

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldStatus    = Field("status")
	FieldAssignee  = Field("assignee")
	FieldTag       = Field("tag")
	FieldCompleted = Field("completed")
	FieldCreator   = Field("creator")
	FieldPriority  = Field("priority")
	FieldDueBefore = Field("due_before")
	FieldDueAfter  = Field("due_after")
	FieldDueAt     = Field("due_at")
)
View Source
const (
	TokenStart     = Token("init")
	TokenField     = Token("fieldName")
	TokenSeparator = Token("sep")
	TokenValue     = Token("value")
)

Variables

This section is empty.

Functions

func Parse

func Parse(input string) ([]*Condition, Token, error)

Types

type Condition

type Condition struct {
	Not       bool
	FieldName string
	Value     string
}

func (Condition) String added in v0.12.10

func (c Condition) String() string

type Field

type Field string

func (Field) IsValid

func (f Field) IsValid() bool

type Language

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

func New

func New(userClient idmv1connect.UserServiceClient, board *tasksv1.Board) *Language

func (*Language) ExpectedNextToken

func (l *Language) ExpectedNextToken(ctx context.Context) (Token, string, []string, error)

func (*Language) Process

func (l *Language) Process(input string) error

func (*Language) Query

func (l *Language) Query(ctx context.Context) (map[Field]Query, error)

func (*Language) String added in v0.12.10

func (l *Language) String() string

type Query

type Query struct {
	In    []string
	NotIn []string
}

func (Query) Len

func (q Query) Len() int

type Token

type Token string

Jump to

Keyboard shortcuts

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