extutil

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMsgSendFuncNotSet = errors.New("message send func not set")

Functions

This section is empty.

Types

type BaseHandler

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

func NewBaseHandler

func NewBaseHandler() *BaseHandler

func (*BaseHandler) SendMsg

func (h *BaseHandler) SendMsg(msg *arhatgopb.Msg) error

func (*BaseHandler) SetMsgSendFunc

func (h *BaseHandler) SetMsgSendFunc(sendMsg types.MsgSendFunc)

type StreamManager

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

func NewStreamManager

func NewStreamManager() *StreamManager

func (*StreamManager) Add

func (m *StreamManager) Add(sid uint64, create func() (io.WriteCloser, types.ResizeHandleFunc, error)) (err error)

func (*StreamManager) Del

func (m *StreamManager) Del(sid uint64)

func (*StreamManager) Has added in v0.4.8

func (m *StreamManager) Has(sid uint64) (exists bool)

func (*StreamManager) Resize

func (m *StreamManager) Resize(sid uint64, cols, rows uint32)

func (*StreamManager) Write

func (m *StreamManager) Write(sid, seq uint64, data []byte) bool

Jump to

Keyboard shortcuts

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