gorpcclient

package
v1.0.1-dev-02 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RpcCliMap sync.Map

Functions

func InjectHelloCli

func InjectHelloCli(s *HelloCli)

func LoadHelloCli

func LoadHelloCli() baseiface.ISingleton

func Register

func Register[S any](s string, rpcli *GorpcCli[S])

Types

type GorpcCli

type GorpcCli[S any] struct {
	RpcServiceName string

	FuncNew func(name string, c client.Client) S
	// contains filtered or unexported fields
}

func Default

func Default[S any](rpcServiceName string) *GorpcCli[S]

func Find

func Find[S any](s string) *GorpcCli[S]

func NewGorpcCli

func NewGorpcCli[S any](rpcServiceName string, funcNew func(name string, c client.Client) S) *GorpcCli[S]

func (*GorpcCli[S]) RpcClient

func (g *GorpcCli[S]) RpcClient() S

func (*GorpcCli[S]) SetRpcClient

func (g *GorpcCli[S]) SetRpcClient(rpcClient S)

type HelloCli

func FindBeanHelloCli

func FindBeanHelloCli() *HelloCli

FindBeanHelloCli

func NewHelloCli

func NewHelloCli() *HelloCli

Jump to

Keyboard shortcuts

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