rpc

package
v0.0.0-...-2596506 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NeedReconnect

func NeedReconnect(err error) bool

func NewClient

func NewClient[T any](address string, register func(grpc.ClientConnInterface) T, options ...grpc.DialOption) (conn T, err error)

func NewServer

func NewServer(address string, register ServerRegister, options ...grpc.ServerOption) (err error)

Types

type ClientRegister

type ClientRegister func(conn *grpc.ClientConn)

type ServerRegister

type ServerRegister func(s *grpc.Server)

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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