constants

package
v0.9.0-rc.18 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOptions added in v0.4.0

func DefaultOptions() []grpc.DialOption

DefaultOptions - Provides option defaults for creating a gRPC service connection with the Nitric Membrane

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 NitricDialTimeout added in v0.4.0

func NitricDialTimeout() time.Duration

NitricDialTimeout - Retrieves default service dial timeout in milliseconds

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