trigger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, comp *ctx.Component, message string)

Types

type Email

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

func NewEmail

func NewEmail() *Email

func (*Email) Cond

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

func (*Email) Handle

func (t *Email) Handle(ctx context.Context, comp *ctx.Component)

type Tag

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

func NewTag

func NewTag() *Tag

func (*Tag) Cond

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

func (*Tag) Handle

func (t *Tag) Handle(ctx context.Context, comp *ctx.Component)

type Trigger

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

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 context.Context, comp *ctx.Component)

type User

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

func NewUser

func NewUser() *User

func (*User) Cond

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

func (*User) Handle

func (t *User) Handle(ctx context.Context, comp *ctx.Component)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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