grpc

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGRPCClientBackendFactory

func GetGRPCClientBackendFactory() backends.ClientBackendFactory

GetGRPCClientBackendFactory returns a gRPC client backend factory This function is used to avoid import cycles while allowing registration

Types

type GRPCClientBackend

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

GRPCClientBackend implements client backend using gRPC

func NewGRPCClientBackend

func NewGRPCClientBackend(config *backends.ClientConfig) (*GRPCClientBackend, error)

NewGRPCClientBackend creates a new gRPC client backend

func (*GRPCClientBackend) CheckHealth

func (g *GRPCClientBackend) CheckHealth() error

CheckHealth checks the health of the gRPC server

func (*GRPCClientBackend) Close

func (g *GRPCClientBackend) Close() error

Close closes the gRPC connection and cleans up blueprints

func (*GRPCClientBackend) SendMessage

func (g *GRPCClientBackend) SendMessage(method string, jsonString string, prvKey string, insecure bool, ctx context.Context) (string, error)

SendMessage sends an RPC message with authentication via gRPC

func (*GRPCClientBackend) SendRawMessage

func (g *GRPCClientBackend) SendRawMessage(jsonString string, insecure bool) (string, error)

SendRawMessage sends a raw JSON message via gRPC

type GRPCClientBackendFactory

type GRPCClientBackendFactory struct{}

GRPCClientBackendFactory creates gRPC client backends

func NewGRPCClientBackendFactory

func NewGRPCClientBackendFactory() *GRPCClientBackendFactory

NewGRPCClientBackendFactory creates a new gRPC client backend factory

func (*GRPCClientBackendFactory) CreateBackend

CreateBackend creates a new gRPC client backend

func (*GRPCClientBackendFactory) GetBackendType

GetBackendType returns the backend type this factory creates

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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