grpc

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server gRPC服务

func NewServer

func NewServer(ctx context.Context, config *config.Config, serviceRegistry *GRPC.ServiceRegistry) *Server

NewServer 创建gRPC服务

func (*Server) Addr

func (s *Server) Addr() string

Addr 获取服务地址

func (*Server) IsEnabled

func (s *Server) IsEnabled() bool

func (*Server) Name

func (s *Server) Name() string

func (*Server) Server

func (s *Server) Server() rpc.Server

Server 获取gRPC服务器

func (*Server) Start

func (s *Server) Start() error

Start 启动gRPC服务

func (*Server) Stop

func (s *Server) Stop(_ context.Context) error

Stop 停止gRPC服务

Jump to

Keyboard shortcuts

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