server

package
v0.0.0-...-5cb46ee Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RegistryAddrRPC string
	RegistryAddrTCP string
	Name            string
}

Config Server 配置

type Server

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

Server 组件

func New

func New(cfg Config) *Server

New 返回一个Server

func (*Server) Run

func (r *Server) Run() (err error)

Run 启动

Jump to

Keyboard shortcuts

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