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 ¶
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
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.