network

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCClientOptions added in v0.0.64

func GRPCClientOptions() []grpc.DialOption

func GRPCServerOptions added in v0.0.64

func GRPCServerOptions() []grpc.ServerOption

func RegisterFlagsForService

func RegisterFlagsForService(cmd *cobra.Command, name string, defaultPort int)

Types

type Configuration

type Configuration struct {
	AdvertisedAddress string
	AdvertisedPort    int
	BindAddress       string
	BindPort          int
}

func ConfigurationFromFlags

func ConfigurationFromFlags(cmd *cobra.Command, name string) Configuration

func (Configuration) Describe

func (c Configuration) Describe(name string) string

Jump to

Keyboard shortcuts

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