grpc

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC transport for the controls lifecycle controller, enabling remote service management and health checking over gRPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg config.Containable, opt ...grpc.ServerOption) (*grpc.Server, error)

NewServer returns a new preconfigured grpc.Server.

func Register

func Register(ctx context.Context, id string, controller controls.Controllable, cfg config.Containable, logger logger.Logger, opt ...grpc.ServerOption) (*grpc.Server, error)

Register creates a new gRPC server and registers it with the controller under the given id.

func RegisterHealthService

func RegisterHealthService(srv *grpc.Server, controller healthSource)

RegisterHealthService registers the standard gRPC health service with the provided server, wired to the controller's status.

func Start

func Start(cfg config.Containable, logger logger.Logger, srv *grpc.Server) controls.StartFunc

Start returns a curried function suitable for use with the controls package.

func Status

func Status(srv *grpc.Server) controls.StatusFunc

Status returns a curried function suitable for use with the controls package.

func Stop

func Stop(logger logger.Logger, srv *grpc.Server) controls.StopFunc

Stop returns a curried function suitable for use with the controls package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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