server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithHops added in v0.2.0

func ContextWithHops(ctx context.Context, hops Hops) context.Context

Types

type Hops added in v0.2.0

type Hops []string // IDs of the platform-health servers that have been visited

func HopsFromContext added in v0.2.0

func HopsFromContext(ctx context.Context) Hops

type HopsKey added in v0.2.0

type HopsKey string

type Option

type Option func(*PlatformHealthServer)

func WithHealthService

func WithHealthService() Option

func WithReflection

func WithReflection() Option

type PlatformHealthServer

type PlatformHealthServer struct {
	ph.UnimplementedHealthServer
	Config provider.Config
	// contains filtered or unexported fields
}

func NewPlatformHealthServer

func NewPlatformHealthServer(serverId *string, conf provider.Config, options ...Option) (*PlatformHealthServer, error)

func (*PlatformHealthServer) Check

func (*PlatformHealthServer) Serve

func (s *PlatformHealthServer) Serve(lis net.Listener) error

func (*PlatformHealthServer) Stop

func (s *PlatformHealthServer) Stop()

Jump to

Keyboard shortcuts

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