extras

package
v0.0.0-...-62c37cb Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirector

func GetDirector(config Config) func(context.Context, string) (context.Context, *grpc.ClientConn, error)

func ToJson

func ToJson(conf interface{}) string

func ToNiceJson

func ToNiceJson(conf interface{}) string

Types

type Backend

type Backend struct {
	Filter     string `json:"filter"`
	Backend    string `json:"backend"`
	BackendEnv string `json:"backendEnv"`
	CertFile   string `json:"certFile"`
	ServerName string `json:"serverName"`
}

func ReplaceEnvironmentVariables

func ReplaceEnvironmentVariables(backends []Backend) []Backend

func (Backend) ReplaceEnvironmentVariables

func (backend Backend) ReplaceEnvironmentVariables() Backend

func (Backend) ToString

func (backend Backend) ToString() string

type Config

type Config struct {
	Listen   string    `json:"listen"`
	Verbose  bool      `json:"verbose"`
	CertFile string    `json:"certFile"`
	KeyFile  string    `json:"keyFile"`
	Backends []Backend `json:"backends"`
}

func GetConfiguration

func GetConfiguration(file string) Config

Jump to

Keyboard shortcuts

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