Help us shape the future of Go! Take the 2026 Go Developer Survey

loaderutils

package
v0.113.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigBytes

func GetConfigBytes(configFilePath string) ([][]byte, error)

func GetFileBytes

func GetFileBytes(filename string) ([]byte, error)

func LoadBaseTLSConfig

func LoadBaseTLSConfig(tlsConfig *shared.TLSConfigFile) (*tls.Config, *x509.CertPool, error)

func LoadClientTLSConfig

func LoadClientTLSConfig(tlsConfig *client.ClientTLSConfigFile, serverName string) (*tls.Config, error)

func LoadConfigFromViper

func LoadConfigFromViper(bindFunc func(v *viper.Viper), configFile interface{}, files ...[]byte) (*viper.Viper, error)

func LoadServerTLSConfig

func LoadServerTLSConfig(tlsConfig *shared.TLSConfigFile) (*tls.Config, error)

func ParseTLSMinVersion added in v0.88.4

func ParseTLSMinVersion(s string) (uint16, error)

ParseTLSMinVersion parses a TLS minimum version string. Empty defaults to TLS 1.3.

Types

type TokenConf added in v0.75.0

type TokenConf struct {
	ExpiresAt            time.Time
	ServerURL            string
	GrpcBroadcastAddress string
	TenantId             string
}

func GetConfFromJWT added in v0.75.0

func GetConfFromJWT(token string) (*TokenConf, error)

Jump to

Keyboard shortcuts

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