server

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroServer

type MicroServer struct {
	RpcxServer *server.Server
	Log        *log.Logger

	ServiceAddress string
}

func (*MicroServer) AddServerPlugin

func (ms *MicroServer) AddServerPlugin(serverPlugin ServerPlugin)

添加server插件

func (*MicroServer) RegistryService

func (ms *MicroServer) RegistryService(rs []registry.ServiceFuncItem)

注册service

func (*MicroServer) StartServer

func (ms *MicroServer) StartServer() (errMsg error)

启动一个微服务监听服务

func (*MicroServer) UnRegistryService

func (ms *MicroServer) UnRegistryService()

下架service 一分钟后停止服务

type ServerPlugin

type ServerPlugin interface {
	Start() error
}

Jump to

Keyboard shortcuts

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