Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerInstance ¶
type ServerInstance struct { Server *jrpc2.Server CancelFunc func(jrpc2.Assigner, jrpc2.ServerStatus) }
ServerInstance is a jrpc2.Server with support for server.Service
func (*ServerInstance) Start ¶
func (instance *ServerInstance) Start(ch channel.Channel)
Start will call jrpc2.Server's Start method
func (*ServerInstance) StartAndWait ¶
func (instance *ServerInstance) StartAndWait(ch channel.Channel)
StartAndWait will start the server and then put it in "wait" status
func (*ServerInstance) Stop ¶
func (instance *ServerInstance) Stop()
Stop will call jrpc2.Server's Stop method
func (*ServerInstance) Wait ¶
func (instance *ServerInstance) Wait()
Wait will cancel the current instance with the server's wait status
Click to show internal directories.
Click to hide internal directories.