Documentation ¶
Index ¶
- func Dial(rawUrl string, opt api.ClientOption) (api.Client, error)
- type Server
- func (s *Server) RegisterGrpc(desc *g.ServiceDesc, impl interface{}) error
- func (s *Server) RegisterJsonRPC(name string, receiver interface{}) error
- func (s *Server) RegisterPath(httpMethod string, path string, handle api.RawHttpHandle) error
- func (s *Server) RegisterRawWs(handle api.RawWsHandle) error
- func (s *Server) Run() error
- func (s *Server) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(opt api.ServerOption) *Server
func (*Server) RegisterGrpc ¶
func (s *Server) RegisterGrpc(desc *g.ServiceDesc, impl interface{}) error
func (*Server) RegisterJsonRPC ¶
func (*Server) RegisterPath ¶
func (*Server) RegisterRawWs ¶
func (s *Server) RegisterRawWs(handle api.RawWsHandle) error
Click to show internal directories.
Click to hide internal directories.