grpc

package
v0.120.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 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 added in v0.76.1

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
}

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

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