instance

package
v0.0.0-...-9ded4d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 2 Imported by: 0

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.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL