Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func New ¶
func New(svr *streams.StreamManger) *Router
func (*Router) AddStatic ¶
func (r *Router) AddStatic(command string, handler CommandHandler, stream StreamHandler) error
type StreamHandler ¶
type StreamHandler func(context.Context, io.ReadWriter)
Click to show internal directories.
Click to hide internal directories.