server

package
v0.0.0-...-6de2aca Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Port = 10000
)

Variables

View Source
var (
	DemoAddr string = fmt.Sprintf("localhost:%d", Port)
)

Functions

This section is empty.

Types

type MicroServer

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

MicroServer represents a microservice server instance

func New

func New(serverName string, l net.Listener) *MicroServer

New returns a microserver instance

func (*MicroServer) Echo

Echo implementation Implement EchoService interface

func (*MicroServer) Start

func (m *MicroServer) Start() error

Start starts the microserver

Jump to

Keyboard shortcuts

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