sharedconf

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(v interface{}) error

Decode decodes the configuration.

func GetDataGateway

func GetDataGateway(val string) string

GetDataGateway returns the package level data gateway endpoint if not overwritten.

func GetGatewaySVC

func GetGatewaySVC(val string) string

GetGatewaySVC returns the package level configured gateway service if not overwritten.

func GetJWTSecret

func GetJWTSecret(val string) string

GetJWTSecret returns the package level configured jwt secret if not overwritten.

func SkipUserGroupsInToken

func SkipUserGroupsInToken() bool

SkipUserGroupsInToken returns whether to skip encoding user groups in the access tokens.

Types

type ClientOptions added in v2.11.0

type ClientOptions struct {
	TLSMode    string `mapstructure:"tls_mode"`
	CACertFile string `mapstructure:"cacert"`
}

ClientOptions represent additional options (e.g. tls settings) for the grpc clients

func GRPCClientOptions added in v2.11.0

func GRPCClientOptions() ClientOptions

GRPCClientOptions returns the global grpc client options

Jump to

Keyboard shortcuts

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