Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsStream

type EventsStream struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewEventsStream

func NewEventsStream(s *session.Session) *EventsStream

func (EventsStream) Author

func (mod EventsStream) Author() string

func (*EventsStream) Configure

func (mod *EventsStream) Configure() (err error)

func (EventsStream) Description

func (mod EventsStream) Description() string

func (EventsStream) Name

func (mod EventsStream) Name() string

func (*EventsStream) Show

func (mod *EventsStream) Show(limit int) error

func (*EventsStream) Start

func (mod *EventsStream) Start() error

func (*EventsStream) Stop

func (mod *EventsStream) Stop() error

func (*EventsStream) View

func (mod *EventsStream) View(e session.Event, refresh bool)

type Trigger

type Trigger struct {
	For    string
	Action string
}

type TriggerList

type TriggerList struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTriggerList

func NewTriggerList() *TriggerList

func (*TriggerList) Add

func (l *TriggerList) Add(tag string, command string) (error, string)

func (*TriggerList) Completer

func (l *TriggerList) Completer(prefix string) []string

func (*TriggerList) Del

func (l *TriggerList) Del(id string) (err error)

func (*TriggerList) Dispatch

func (l *TriggerList) Dispatch(e session.Event) (ident string, cmd string, err error, found bool)

func (*TriggerList) Each

func (l *TriggerList) Each(cb func(id string, t Trigger))