client

package
v0.1.139 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 10 Imported by: 0

README

gRPC client to deal with other modules in cluster

Documentation

Index

Constants

View Source
const DefaultStoreTTL = 60 * 60

DefaultStoreTTL for how long we keep grpc client in a pool, default 1h

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressPool added in v0.1.124

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

func NewPool

func NewPool() *AddressPool

func (*AddressPool) Deregister added in v0.1.124

func (p *AddressPool) Deregister(moduleName string)

func (*AddressPool) Handler added in v0.1.124

func (p *AddressPool) Handler(ctx context.Context, msg *runner.Msg) error

func (*AddressPool) Register added in v0.1.124

func (p *AddressPool) Register(moduleName, addr string)

func (*AddressPool) SetLogger added in v0.1.124

func (p *AddressPool) SetLogger(l logr.Logger) *AddressPool

func (*AddressPool) Start added in v0.1.124

func (p *AddressPool) Start(ctx context.Context) error

type Pool

type Pool interface {
	Register(moduleName, addr string)
	Deregister(moduleName string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳