Documentation
¶
Index ¶
- type Config
- type ConfigGrpc
- type ConfigGrpcTLS
- type ConfigHealthCheck
- type ConfigLogging
- type ConfigMetrics
- type ConfigReplicaSet
- type ConfigReplicationReader
- type ConfigRouter
- type ConfigScramAuth
- type ConfigServer
- type ConfigStorage
- type ConfigSyncSource
- type ConfigTLSMode
- type ConfigTag
- type ConfigX509
- type EmbeddingConfig
- type ScramAuthTLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SyncSource ConfigSyncSource `json:"syncSource" yaml:"syncSource"`
Storage ConfigStorage `json:"storage" yaml:"storage"`
Server ConfigServer `json:"server" yaml:"server"`
Metrics ConfigMetrics `json:"metrics" yaml:"metrics"`
HealthCheck ConfigHealthCheck `json:"healthCheck" yaml:"healthCheck"`
Logging ConfigLogging `json:"logging" yaml:"logging"`
Embedding *EmbeddingConfig `json:"embedding,omitempty" yaml:"embedding,omitempty"`
}
type ConfigGrpc ¶
type ConfigGrpc struct {
Address string `json:"address" yaml:"address"`
TLS *ConfigGrpcTLS `json:"tls,omitempty" yaml:"tls,omitempty"`
}
type ConfigGrpcTLS ¶
type ConfigGrpcTLS struct {
Mode ConfigTLSMode `json:"mode" yaml:"mode"`
CertificateKeyFile *string `json:"certificateKeyFile,omitempty" yaml:"certificateKeyFile,omitempty"`
CertificateAuthorityFile *string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
}
type ConfigHealthCheck ¶
type ConfigHealthCheck struct {
Address string `json:"address" yaml:"address"`
}
type ConfigLogging ¶
type ConfigMetrics ¶
type ConfigReplicaSet ¶
type ConfigReplicaSet struct {
HostAndPort []string `json:"hostAndPort" yaml:"hostAndPort"`
X509 *ConfigX509 `json:"x509,omitempty" yaml:"x509,omitempty"`
ScramAuth *ConfigScramAuth `json:"scramAuth,omitempty" yaml:"scramAuth,omitempty"`
}
type ConfigReplicationReader ¶
type ConfigRouter ¶
type ConfigRouter struct {
HostAndPort []string `json:"hostAndPort" yaml:"hostAndPort"`
X509 *ConfigX509 `json:"x509,omitempty" yaml:"x509,omitempty"`
ScramAuth *ConfigScramAuth `json:"scramAuth,omitempty" yaml:"scramAuth,omitempty"`
}
type ConfigScramAuth ¶
type ConfigScramAuth struct {
Username string `json:"username" yaml:"username,omitempty"`
PasswordFile string `json:"passwordFile" yaml:"passwordFile,omitempty"`
TLS *ScramAuthTLS `json:"tls,omitempty" yaml:"tls,omitempty"`
AuthSource *string `json:"authSource,omitempty" yaml:"authSource,omitempty"`
}
type ConfigServer ¶
type ConfigServer struct {
Grpc *ConfigGrpc `json:"grpc,omitempty" yaml:"grpc,omitempty"`
}
func (ConfigServer) TLSEnabled ¶
func (s ConfigServer) TLSEnabled() bool
type ConfigStorage ¶
type ConfigStorage struct {
DataPath string `json:"dataPath" yaml:"dataPath"`
}
type ConfigSyncSource ¶
type ConfigSyncSource struct {
ReplicaSet ConfigReplicaSet `json:"replicaSet" yaml:"replicaSet"`
Router *ConfigRouter `json:"router,omitempty" yaml:"router,omitempty"`
ReplicationReader *ConfigReplicationReader `json:"replicationReader,omitempty" yaml:"replicationReader,omitempty"`
}
type ConfigTLSMode ¶
type ConfigTLSMode string
const ( ConfigTLSModeTLS ConfigTLSMode = "TLS" ConfigTLSModeMTLS ConfigTLSMode = "mTLS" ConfigTLSModeDisabled ConfigTLSMode = "Disabled" )
type ConfigX509 ¶
type ConfigX509 struct {
CertificateAuthorityFile *string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
TLSCertificateKeyFile *string `json:"tlsCertificateKeyFile,omitempty" yaml:"tlsCertificateKeyFile,omitempty"`
TLSCertificateKeyFilePasswordFile *string `json:"tlsCertificateKeyFilePasswordFile,omitempty" yaml:"tlsCertificateKeyFilePasswordFile,omitempty"`
}
type EmbeddingConfig ¶
type EmbeddingConfig struct {
QueryKeyFile string `json:"queryKeyFile" yaml:"queryKeyFile,omitempty"`
IndexingKeyFile string `json:"indexingKeyFile" yaml:"indexingKeyFile,omitempty"`
ProviderEndpoint string `json:"providerEndpoint" yaml:"providerEndpoint,omitempty"`
IsAutoEmbeddingViewWriter *bool `json:"isAutoEmbeddingViewWriter" yaml:"isAutoEmbeddingViewWriter,omitempty"`
}
type ScramAuthTLS ¶
type ScramAuthTLS struct {
Enabled bool `json:"enabled" yaml:"enabled,omitempty"`
TLSCertificateKeyFile *string `json:"tlsCertificateKeyFile,omitempty" yaml:"tlsCertificateKeyFile,omitempty"`
TLSCertificateKeyFilePasswordFile *string `json:"tlsCertificateKeyFilePasswordFile,omitempty" yaml:"tlsCertificateKeyFilePasswordFile,omitempty"`
CertificateAuthorityFile *string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.