rpc

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, endpoint string) (conn *grpc.ClientConn, err error)

Types

type RpcConfig

type RpcConfig struct {
	Host     string `default:"0.0.0.0"`
	Port     string `default:":9000"`
	Services Services
}

func (RpcConfig) Address

func (c RpcConfig) Address() string

func (RpcConfig) Service

func (c RpcConfig) Service(service string) string

type Services

type Services map[string]string

func (*Services) Decode

func (s *Services) Decode(v string) error

Jump to

Keyboard shortcuts

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