grpcclient

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAddressEmpty string = "address is empty"
	ErrPortEmpty    string = "port is empty"
	ErrPortBadf     string = "port is a non-integer: %s"
)
View Source
const (
	EnvNameAddress string = "BLUDGEON_GRPC_ADDRESS"
	EnvNamePort    string = "BLUDGEON_GRPC_PORT"
)
View Source
const (
	DefaultAddress string = "127.0.0.1"
	DefaultPort    string = "8081"
)

Variables

Functions

Types

type Configuration

type Configuration struct {
	Address string `json:"address"`
	Port    string `json:"port"`
	Options []grpc.DialOption
}

func (*Configuration) Default

func (c *Configuration) Default()

func (*Configuration) FromEnv

func (c *Configuration) FromEnv(envs map[string]string)

func (*Configuration) Validate

func (c *Configuration) Validate() (err error)

Jump to

Keyboard shortcuts

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