Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) AddNotificationHandler ¶
func (m *Mux) AddNotificationHandler(method string, handler NotificationHandler)
func (*Mux) AddRequestHandler ¶
func (m *Mux) AddRequestHandler(method string, handler RequestHandler)
type NotificationHandler ¶
type NotificationHandler func(params json.RawMessage) (err error)
type RequestHandler ¶
type RequestHandler func(params json.RawMessage) (result any, err error)
Click to show internal directories.
Click to hide internal directories.