trigger

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email added in v0.0.20

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

func NewEmail added in v0.0.20

func NewEmail() *Email

func (*Email) Cond added in v0.0.20

func (t *Email) Cond(text string) bool

func (*Email) Handle added in v0.0.20

func (t *Email) Handle(ctx *ctx.Context)

type Tag added in v0.0.20

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

func NewTag added in v0.0.20

func NewTag() *Tag

func (*Tag) Cond added in v0.0.20

func (t *Tag) Cond(text string) bool

func (*Tag) Handle added in v0.0.20

func (t *Tag) Handle(ctx *ctx.Context)

type Trigger

type Trigger interface {
	Cond(text string) bool
	Handle(ctx *ctx.Context)
}

func Triggers

func Triggers() []Trigger

type Url

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

func NewUrl

func NewUrl() *Url

func (*Url) Cond

func (t *Url) Cond(text string) bool

func (*Url) Handle

func (t *Url) Handle(ctx *ctx.Context)

type User added in v0.0.20

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

func NewUser added in v0.0.20

func NewUser() *User

func (*User) Cond added in v0.0.20

func (t *User) Cond(text string) bool

func (*User) Handle added in v0.0.20

func (t *User) Handle(ctx *ctx.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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