option

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option represents a planner option

func WithExprListener added in v0.2.0

func WithExprListener(listener notify.ExprListener) Option

WithExprListener returns an option for setting the expression listener

func WithStmtListener added in v0.2.0

func WithStmtListener(listener notify.StmtListener) Option

WithStmtListener sets the statement listener

func WithTracker added in v0.2.0

func WithTracker(tracker *notify.Tracker) Option

WithTracker sets the tracker

type Options

type Options struct {
	notify.StmtListener
	Tracker *notify.Tracker
	notify.ExprListener
	// contains filtered or unexported fields
}

Options represents planner options

func NewOptions added in v0.2.0

func NewOptions(opts ...Option) *Options

NewOptions returns a new options

func (*Options) Apply added in v0.2.0

func (o *Options) Apply(opts []Option)

func (*Options) Merge added in v0.2.0

func (o *Options) Merge(parent *Options, opts []Option) *Options

Jump to

Keyboard shortcuts

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