client

package
v0.52.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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
	NoGrpcRetry bool

	ServerURL            string
	GRPCBroadcastAddress string

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

	Namespace string

	CloudRegisterID *string
	RunnableActions []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"`

	NoGrpcRetry bool `mapstructure:"noGrpcRetry" json:"noGrpcRetry,omitempty"`

	CloudRegisterID    *string  `mapstructure:"cloudRegisterID" json:"cloudRegisterID,omitempty"`
	RawRunnableActions []string `mapstructure:"runnableActions" json:"runnableActions,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