constants

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvWithFallback

func GetEnvWithFallback(varName string, fallback string) string

getEnvWithFallback - Returns an envirable variable's value from its name or a default value if the variable isn't set

func NitricAddress

func NitricAddress() string

nitricAddress - constructs the full address i.e. host:port, of the nitric service based on config or defaults

func NitricHost

func NitricHost() string

nitricPort - retrieves the environment variable which specifies the host (e.g. 127.0.0.1) of the nitric service

if the env var isn't set, returns the default host

func NitricPort

func NitricPort() string

nitricPort - retrieves the environment variable which specifies the port (e.g. 50051) of the nitric service

if the env var isn't set, returns the default port

Types

This section is empty.

Jump to

Keyboard shortcuts

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