stream

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	api.Handler
	// contains filtered or unexported fields
}

Stream handler.

func NewHandler

func NewHandler(logger *logrus.Entry) *Handler

func (*Handler) Connect

func (h *Handler) Connect(c *gin.Context)

func (*Handler) RegisterMessageHandler

func (h *Handler) RegisterMessageHandler(msgType MessageType, handler MessageHandler)

type Message

type Message []byte

type MessageHandler

type MessageHandler interface {
	Handle(ctx context.Context, msg Message, reply chan<- Message) error
}

type MessageType

type MessageType string

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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