sdk

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	HAS_STARTED     = "SDK gRPC Server has already started."
	ALREADY_STOPPED = "SDK gRPC Server already stopped."
)

Error messages

Variables

This section is empty.

Functions

func GetPort added in v0.7.1

func GetPort(addr string) string

Pick out the port from a full address

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

implements common.Service

func NewServer

func NewServer(addr string, sdkServer pb.SDKServer) (*Server, error)

Start a new SDK Server

func (*Server) IsRunning

func (server *Server) IsRunning() bool

Is the server still running

func (*Server) OnReset

func (server *Server) OnReset() error

func (*Server) OnStart

func (server *Server) OnStart() error

func (*Server) OnStop

func (server *Server) OnStop()

func (*Server) Quit

func (server *Server) Quit() <-chan struct{}

func (*Server) Reset

func (server *Server) Reset() error

func (*Server) SetLogger

func (server *Server) SetLogger(logger tlog.Logger)

func (*Server) Start

func (server *Server) Start() error

func (*Server) Stop

func (server *Server) Stop() error

func (*Server) String

func (server *Server) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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