server

package
v0.0.0-...-bf1460b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(port, sourceFileName, zero, one string) error

Serve starts serving

Types

type Server

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

Server is the server that expose a gRPC and REST API

func (*Server) Start

func (s *Server) Start() error

Start starts the server to server/expose a gRPC & REST API

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the server running

func (*Server) Wait

func (s *Server) Wait() error

Wait keep the server running until it's stop or fail

Jump to

Keyboard shortcuts

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