Documentation ¶
Index ¶
Constants ¶
View Source
const FirstFrame = 15
View Source
const StreamError = 13
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCodes ¶
type ErrorCodes uint8
const (
EndpointStreamNotFound ErrorCodes = iota
)
func (ErrorCodes) String ¶
func (r ErrorCodes) String() string
type HsSever ¶
func (*HsSever) StartServer ¶
func (h *HsSever) StartServer()
type HsTemplate ¶
type HsTemplate struct {
Pf ProcessingFunction
}
func (*HsTemplate) Init ¶
func (ht *HsTemplate) Init()
func (*HsTemplate) StreamProcessor ¶
func (ht *HsTemplate) StreamProcessor( stream *StreamConfig, cancel context.CancelFunc, )
type ProcessingFunction ¶
type SocketMassage ¶
type StreamConfig ¶
type StreamProcessor ¶
type StreamProcessor func( stream *StreamConfig, cancel context.CancelFunc, )
type StreamsHolder ¶
type StreamsHolder struct { Streams map[uint32]*StreamConfig Input chan *SocketMassage Output chan *SocketMassage MessageHandler StreamProcessor Meta []byte }
func (*StreamsHolder) ErrorResponse ¶
func (h *StreamsHolder) ErrorResponse(stream uint32, function uint8, Address []byte, errorCode ErrorCodes)
func (*StreamsHolder) InputProcessing ¶
func (h *StreamsHolder) InputProcessing(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.