Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPPath = "/http" WSPath = "/ws" )
URL paths.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error is an error to be passed within RPC notification. Regular errors cannot be properly marshaled into JSON, so they should be converted into Error pointers before being sent.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a RPC server which supports both HTTP and WS.
func (*Server) AddHandler ¶
AddHandler registers a new RPC handler in a given namespace.
func (*Server) ListenAndServe ¶
ListenAndServe starts to listen and to serve requests.
Click to show internal directories.
Click to hide internal directories.