messages

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func NewListener

func NewListener(c *client.Client, msgs chan *Message) (*Listener, error)

func (*Listener) Handle

func (l *Listener) Handle(args string)

Handle will block until the resulting Msg is read from our msgs channel

type Message

type Message struct {
	Data    []byte
	MsgType MsgType
}

func (*Message) String

func (m *Message) String() string

type MsgType

type MsgType int
const (
	QuitMsg MsgType = iota
	NullMsg
	FeedMsg
	MainMsg
	StatusMsg
	ListMsg
	TabsMsg
	TitleMsg
	AsideMsg
	NotificationMsg
	BufferMsg
	OpenMsg
	LinkMsg
	CloseMsg
	SendMsg
)

Jump to

Keyboard shortcuts

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