api

package
v0.1.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthChecker

func NewHealthChecker() grpchealth.Checker

Types

type Server

type Server interface {
	Serve(ctx context.Context, l net.Listener, localMode bool) error
}

func NewServer

func NewServer(kc client.Client, cfg ServerConfig) (Server, error)

type ServerConfig

type ServerConfig struct {
	GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT" default:"30s"`
}

func ServerConfigFromEnv

func ServerConfigFromEnv() ServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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