loaderutils

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 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)

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