gorpcserver

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GogrpcStart

func GogrpcStart(reg IgogrpcRegister)

func InjectGogrpcServer

func InjectGogrpcServer(s *GogrpcServer)

func LoadGogrpcServer

func LoadGogrpcServer() baseiface.ISingleton

func Start

func Start(reg IgogrpcRegister, dto *baseconfig.RpcServerDto)

Types

type GogrpcServer

type GogrpcServer struct {
	basedto.BaseEntitySingle
	// contains filtered or unexported fields
}

func DefaultGogrpcServer

func DefaultGogrpcServer() *GogrpcServer

func FindBeanGogrpcServer

func FindBeanGogrpcServer() *GogrpcServer

FindBeanGogrpcServer

func NewGogrpcServer

func NewGogrpcServer(r IgogrpcRegister) *GogrpcServer

func (*GogrpcServer) Init

func (server *GogrpcServer) Init(serverDto *baseconfig.RpcServerDto) micro.Service

func (*GogrpcServer) ReadCfg

func (server *GogrpcServer) ReadCfg() *baseconfig.RpcServerDto

func (*GogrpcServer) RegisterGrpc

func (server *GogrpcServer) RegisterGrpc() IgogrpcRegister

func (*GogrpcServer) Run

func (server *GogrpcServer) Run()

func (*GogrpcServer) RunServer

func (server *GogrpcServer) RunServer(serverDto *baseconfig.RpcServerDto)

func (*GogrpcServer) SetRegisterGrpc

func (server *GogrpcServer) SetRegisterGrpc(registerGrpc IgogrpcRegister)

type IgogrpcRegister

type IgogrpcRegister interface {
	RegisterGrpc(service micro.Service)
}

@Title 文件名称: grpcregister.go @Description 描述: rpc业务服务注册

@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)

Jump to

Keyboard shortcuts

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