grpc

package
v1.84.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Healthz    = "/Healthz"
	Readiness  = "/Ready"
	Validation = "/Validate"
)

Variables

Functions

func GetAuthorizationHeader

func GetAuthorizationHeader(ctx context.Context) string

func GetGatewayHeader

func GetGatewayHeader(ctx context.Context, headername string) string

func GetHeader

func GetHeader(ctx context.Context, headername string) string

Types

type Config

type Config struct {
	ServerPort    string
	GatewayPort   string
	CustomHeaders []string
}

func (Config) ToGatewayConfig

func (c Config) ToGatewayConfig() GatewayConfig

func (Config) ToServerConfig

func (c Config) ToServerConfig() ServerConfig

type GatewayConfig

type GatewayConfig struct {
	Port          string
	GRPCEndpoint  string
	CustomHeaders []string
}

type ServerConfig

type ServerConfig struct {
	Port string
}

Jump to

Keyboard shortcuts

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