server

package
v0.0.0-...-4d4bbb7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Name         string
	Address      string
	EnableProxy  bool
	ProxyAddress string

	Server       *grpc.Server
	ServerOption []grpc.ServerOption

	Proxy       *runtime.ServeMux
	ProxyOption []runtime.ServeMuxOption
}

Options hold server options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *flag.FlagSet)

AddFlags add server-* flags.

func (*Options) Init

func (o *Options) Init() error

Init initialize the server

func (*Options) ListenAndServe

func (o *Options) ListenAndServe() error

ListenAndServe listen tcp and serve the server.

type Server

type Server interface{}

Server interface builder

Jump to

Keyboard shortcuts

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