grpc

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigEntity

type ConfigEntity struct {
	Deploy  bool   `json:"deploy"`  // current service deploy mode: local area network or not
	Address string `json:"address"` // current service deploy address
}

type EntranceEntity

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

func New

func New(logger *zap.Logger) *EntranceEntity

func (*EntranceEntity) CreateServer

func (s *EntranceEntity) CreateServer(handle func(server *grpc.Server), address string)

func (*EntranceEntity) Dial

func (s *EntranceEntity) Dial(endpoint []string, opt *ConfigEntity) *grpc.ClientConn

Jump to

Keyboard shortcuts

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