Documentation ¶
Index ¶
- type CacheConfig
- type DBConfig
- type NatsConfig
- type OTelConfig
- type Stub
- type StubConfig
- func (s *StubConfig) WithCache(config ...CacheConfig) *StubConfig
- func (s *StubConfig) WithDB(config ...DBConfig) *StubConfig
- func (s *StubConfig) WithNats(config ...NatsConfig) *StubConfig
- func (s *StubConfig) WithOTel(config *OTelConfig) *StubConfig
- func (s *StubConfig) WithVault(config ...VaultConfig) *StubConfig
- type VaultConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type NatsConfig ¶
type OTelConfig ¶
type OTelConfig struct { Enabled bool URL string ServiceModule string ServiceName string ServiceVersion string ServiceInstanceID string }
func NewOTelConfig ¶
func NewOTelConfig(module string, name string, version string, instanceID string) *OTelConfig
func (*OTelConfig) WithURL ¶
func (c *OTelConfig) WithURL(url string) *OTelConfig
type Stub ¶
type Stub struct { Cache cache.Cache DB *mongo.Client OTel otel.Telemetry Nats *nats.Conn Vault vault.VaultServiceClient // contains filtered or unexported fields }
func NewStub ¶
func NewStub(config *StubConfig) *Stub
type StubConfig ¶
type StubConfig struct { Cache CacheConfig Nats NatsConfig Db DBConfig OTel OTelConfig Vault VaultConfig }
func NewSystemStubConfig ¶
func NewSystemStubConfig() *StubConfig
func (*StubConfig) WithCache ¶
func (s *StubConfig) WithCache(config ...CacheConfig) *StubConfig
func (*StubConfig) WithDB ¶
func (s *StubConfig) WithDB(config ...DBConfig) *StubConfig
func (*StubConfig) WithNats ¶
func (s *StubConfig) WithNats(config ...NatsConfig) *StubConfig
func (*StubConfig) WithOTel ¶
func (s *StubConfig) WithOTel(config *OTelConfig) *StubConfig
func (*StubConfig) WithVault ¶ added in v0.0.3
func (s *StubConfig) WithVault(config ...VaultConfig) *StubConfig
type VaultConfig ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.