server

package
v0.0.0-...-1f93a72 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCOption

type GRPCOption struct {
	S2SRegistryOption   registry.GRPCRegistryOption
	S2CRegistryOption   registry.GRPCRegistryOption
	S2SRegistrantOption registrant.GRPCRegistrantOption
	GraphQueryOption    graph.GraphQueryOption
}

type ListenerOption

type ListenerOption struct {
	S2SListenNetwork, S2SListenAddr               string
	S2CListenNetwork, S2CListenAddr               string
	GraphQueryListenNetwork, GraphQueryListenAddr string
}

func DefaultListenerOption

func DefaultListenerOption() ListenerOption

type Option

type Option struct {
	ServiceOption server.Option
	GRPCOption    GRPCOption
	// contains filtered or unexported fields
}

func DefaultOption

func DefaultOption(S2SBoardCastAddr, S2CBoardCastAddr, GraphQueryBoardCastAddr string, initServer *pb.S2SInfo) (option Option, err error)

type Server

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

func New

func New(ServerInfo *pb.ServerInfo, option Option) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context, option ListenerOption) (err error)

Jump to

Keyboard shortcuts

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