grpcconfig

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(c *config.Config) string

Endpoint returns value of "endpoint" config parameter from "grpc" section.

Panics if value is not a non-empty string.

Types

type TLSConfig

type TLSConfig struct {
	// contains filtered or unexported fields
}

TLSConfig is a wrapper over "tls" config section which provides access to TLS configuration of gRPC connection.

func TLS

func TLS(c *config.Config) TLSConfig

TLS returns structure that provides access to "tls" subsection of "grpc" section.

func (TLSConfig) CertificateFile

func (tls TLSConfig) CertificateFile() string

CertificateFile returns value of "certificate" config parameter.

Panics if value is not a non-empty string.

func (TLSConfig) Enabled

func (tls TLSConfig) Enabled() bool

Enabled returns value of "enabled" config parameter.

Returns false if value is not set.

func (TLSConfig) KeyFile

func (tls TLSConfig) KeyFile() string

KeyFile returns value of "key" config parameter.

Panics if value is not a non-empty string.

Jump to

Keyboard shortcuts

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