grpcserver

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPRCServerService

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

func (*GPRCServerService) GetAddress

func (s *GPRCServerService) GetAddress() string

func (*GPRCServerService) GetServer

func (s *GPRCServerService) GetServer() *grpc.Server

func (*GPRCServerService) IsDisabled

func (s *GPRCServerService) IsDisabled() bool

func (*GPRCServerService) Run

func (s *GPRCServerService) Run(ctx context.Context) error

type HealthService

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

HealthService implements GRPC Health Checking Protocol: https://github.com/grpc/grpc/blob/master/doc/health-checking.md It also demonstrates how to override authentication for a service – in this case we are disabling any auth in AuthFuncOverride.

func ProvideHealthService

func ProvideHealthService(cfg *setting.Cfg, grpcServerProvider Provider) (*HealthService, error)

type Provider

type Provider interface {
	registry.BackgroundService
	GetServer() *grpc.Server
	GetAddress() string
}

func ProvideService

func ProvideService(cfg *setting.Cfg, authenticator interceptors.Authenticator, tracer tracing.Tracer, registerer prometheus.Registerer) (Provider, error)

type ReflectionService

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

ReflectionService implements the gRPC Server Reflection Protocol: https://github.com/grpc/grpc/blob/master/doc/server-reflection.md

func ProvideReflectionService

func ProvideReflectionService(cfg *setting.Cfg, grpcServerProvider Provider) (*ReflectionService, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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