client

package
v0.42.11-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAllEnv

func BindAllEnv(v *viper.Viper)

Types

type ClientConfig

type ClientConfig struct {
	TenantId string
	Token    string

	ServerURL            string
	GRPCBroadcastAddress string

	// TLSConfig will be nil if the strategy is "none"
	TLSConfig *tls.Config

	Namespace string
}

type ClientConfigFile

type ClientConfigFile struct {
	TenantId string `mapstructure:"tenantId" json:"tenantId,omitempty"`

	Token string `mapstructure:"token" json:"token,omitempty"`

	HostPort string `mapstructure:"hostPort" json:"hostPort,omitempty"`

	TLS ClientTLSConfigFile `mapstructure:"tls" json:"tls,omitempty"`

	Namespace string `mapstructure:"namespace" json:"namespace,omitempty"`
}

type ClientTLSConfigFile

type ClientTLSConfigFile struct {
	Base shared.TLSConfigFile `mapstructure:"base" json:"tenantId,omitempty"`

	TLSServerName string `mapstructure:"tlsServerName" json:"tlsServerName,omitempty"`
}

Jump to

Keyboard shortcuts

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