Help us shape the future of Go! Take the 2026 Go Developer Survey

predicate

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LinkedConversationSearch = reflect.TypeFor[ConversationSearch]()
View Source
var LinkedLeaseHandler predicate.Handler = &LeasePredicate{}
View Source
var LinkedLeaseTypes = []reflect.Type{reflect.TypeFor[LeasePredicate]()}
View Source
var LinkedRunHandler predicate.Handler = &RunPredicate{}
View Source
var LinkedTokenLeasePredicate = reflect.TypeFor[TokenLeasePredicate]()

Functions

This section is empty.

Types

type ConversationSearch

type ConversationSearch struct{}

ConversationSearch preserves the public page search across the ID, title, and summary. Values remain bound parameters on every database dialect.

func (*ConversationSearch) Compute

func (*ConversationSearch) Compute(_ context.Context, value any) (*predicate.Criteria, error)

type LeasePredicate

type LeasePredicate struct {
	Owner string    `bind:"kind=input,in=LeaseOwner"`
	Now   time.Time `bind:"kind=input,in=LeaseNow"`
}

LeasePredicate uses the writer's typed owner and clock inputs.

func (*LeasePredicate) Compute

func (h *LeasePredicate) Compute(_ context.Context, value any) (*predicate.Criteria, error)

type MessageAssistantFinal

type MessageAssistantFinal struct{}

func (*MessageAssistantFinal) Compute

type MessageAssistantStatus

type MessageAssistantStatus struct{}

func (*MessageAssistantStatus) Compute

type MessageTurnTask

type MessageTurnTask struct{}

Presence controls activation. The supplied boolean does not change the legacy meaning of these named business filters.

func (*MessageTurnTask) Compute

type RunExpected

type RunExpected struct {
	Id         string
	Condition  *RunPatchCondition
	LeaseMode  string
	LeaseOwner string
	LeaseNow   time.Time
}

type RunPatchCondition

type RunPatchCondition struct {
	Status     string  `json:",omitempty"`
	LeaseOwner *string `json:",omitempty"`
	Attempt    *int    `json:",omitempty"`
}

RunPatchCondition retains the legacy run business expectations. Datly's existing predicate system owns activation and mutation criteria.

type RunPredicate

type RunPredicate struct{}

func (*RunPredicate) Compute

func (*RunPredicate) Compute(_ context.Context, value any) (*predicate.Criteria, error)

type TechnicalReportAuditRetention

type TechnicalReportAuditRetention struct{}

func (*TechnicalReportAuditRetention) Compute

type TechnicalReportJobRetention

type TechnicalReportJobRetention struct{}

func (*TechnicalReportJobRetention) Compute

type TechnicalReportRunRetention

type TechnicalReportRunRetention struct{}

func (*TechnicalReportRunRetention) Compute

type TechnicalRetention

type TechnicalRetention struct {
	Scope       string
	OlderThan   time.Time
	EvaluatedAt time.Time
	AfterRecord string
	ExactRecord string
}

TechnicalRetention is supplied only by the trusted retention orchestration. Predicates keep cutoff, TTL, reference guards and keyset cursors in SQL.

type TechnicalSessionRetention

type TechnicalSessionRetention struct{}

func (*TechnicalSessionRetention) Compute

type TokenLeasePredicate

type TokenLeasePredicate struct{}

TokenLeasePredicate keeps the claim race guard on the database server clock. It is used only by the generated token writer's claim mode.

func (*TokenLeasePredicate) Compute

func (*TokenLeasePredicate) Compute(ctx context.Context, value any) (*predicate.Criteria, error)

Jump to

Keyboard shortcuts

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