events_stream

package
v2.24.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0 Imports: 23 Imported by: 0

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))

Jump to

Keyboard shortcuts

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