conn

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnection

func CreateConnection(endpoints []Endpoint, ctx context.Context, creds credentials.TransportCredentials) (*grpc.ClientConn, error)

Types

type ConfigFileData

type ConfigFileData struct {
	Grpc Grpc `toml:"grpc"`
}

func LoadConfig

func LoadConfig() ConfigFileData

type Endpoint

type Endpoint struct {
	Type    string `toml:"type"`
	Path    string `toml:"path"`
	Port    uint16 `toml:"port"`
	Enabled bool   `toml:"enabled"`
}

type Grpc

type Grpc struct {
	Endpoints []Endpoint `toml:"endpoints"`
}

Jump to

Keyboard shortcuts

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