option

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExprListener

type ExprListener func(stmt ast.Expr) (ast.Expr, error)

ExprListener represent expr listener

type Option

type Option interface{}

Option represents a planner option

type Options

type Options []Option

Options option slice

func (Options) ExprListener

func (o Options) ExprListener() ExprListener

ExprListener returns an expr listener option or nil

func (Options) StmtListener

func (o Options) StmtListener() StmtListener

StmtListener returns a stmt listener option or nil

func (Options) Tracker

func (o Options) Tracker() *Tracker

Tracker returns a tracker option or nil

type StmtListener

type StmtListener func(stmt ast.Stmt) (ast.Stmt, error)

StmtListener represents stmt listener

type Tracker

type Tracker struct {
	Name   string
	Target reflect.Type
	Embed  bool
}

Tracker represents a tracker option

func NewTracker

func NewTracker(name string, p reflect.Type, embed bool) *Tracker

NewTracker returns a tracker

Jump to

Keyboard shortcuts

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