action

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(sess *session.Context) error

type Args

type Args interface {
	Arg(i uint) vars.Value
	ArgDefault(i uint, value any) (vars.Value, error)
	Args() []vars.Value
	Argn() uint
	Flag(name string) varflag.Flag
}

func NewArgs

func NewArgs(flags varflag.Flags) Args

type Register

type Register func(sess session.Register) error

type Tick

type Tick func(sess *session.Context, ts time.Time, delta time.Duration) error

type Tock

type Tock func(sess *session.Context, delta time.Duration, tps int) error

type WithArgs

type WithArgs func(sess *session.Context, args Args) error

type ActionWithFlags func(sess *Session, flags Flags) error

type WithOptions

type WithOptions func(sess *session.Context, opts *options.Options) error

type WithPrevErr

type WithPrevErr func(sess *session.Context, err error) error

Jump to

Keyboard shortcuts

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