Documentation ¶
Index ¶
- func CreateMongoClient(ctx context.Context, mongoConfig MongoConfig) *mongo.Client
- func CreatePostgresClient(ctx context.Context, postgresConfig PostgresConfig) *gorm.DB
- func CreateRedisClient(ctx context.Context, redisConfig RedisConfig) *redis.Client
- func CreateSentry(sentryConfig SentryConfig) error
- func NewKafkaConn(cfg *config.Config) (*kafka.Conn, error)
- func NewLauncher(launcherConfig LauncherConfig) *launcher.Launcher
- func NewReaderWithTLS(cfg *KafkaConnectionConfig) *kafka.Reader
- func NewTraceProvider(ctx context.Context, cfg Config) *sdktrace.TracerProvider
- func NewWriterWithMechanism(cfg *KafkaWriterWithMechanismConfig) *kafka.Writer
- type Adapter
- type Config
- type ExporterConfig
- type KafkaConnectionConfig
- type KafkaMechanismConfig
- type KafkaWriterWithMechanismConfig
- type LauncherConfig
- type MongoConfig
- type PostgresConfig
- type RedisConfig
- type SentryConfig
- type TraceProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMongoClient ¶
func CreateMongoClient(ctx context.Context, mongoConfig MongoConfig) *mongo.Client
func CreatePostgresClient ¶
func CreatePostgresClient(ctx context.Context, postgresConfig PostgresConfig) *gorm.DB
func CreateRedisClient ¶ added in v0.3.10
func CreateRedisClient(ctx context.Context, redisConfig RedisConfig) *redis.Client
func CreateSentry ¶ added in v0.3.0
func CreateSentry(sentryConfig SentryConfig) error
func NewKafkaConn ¶ added in v0.3.2
func NewLauncher ¶ added in v0.5.10
func NewLauncher(launcherConfig LauncherConfig) *launcher.Launcher
func NewReaderWithTLS ¶ added in v0.5.17
func NewReaderWithTLS(cfg *KafkaConnectionConfig) *kafka.Reader
func NewTraceProvider ¶ added in v0.5.35
func NewTraceProvider(ctx context.Context, cfg Config) *sdktrace.TracerProvider
func NewWriterWithMechanism ¶ added in v0.5.16
func NewWriterWithMechanism(cfg *KafkaWriterWithMechanismConfig) *kafka.Writer
Types ¶
type Config ¶ added in v0.5.35
type Config struct { ExporterConfig ExporterConfig TraceProviderConfig TraceProviderConfig }
type ExporterConfig ¶ added in v0.5.35
type KafkaConnectionConfig ¶ added in v0.5.16
type KafkaConnectionConfig struct {
Brokers []string
}
type KafkaMechanismConfig ¶ added in v0.5.16
type KafkaWriterWithMechanismConfig ¶ added in v0.5.16
type KafkaWriterWithMechanismConfig struct { MechanismConfig KafkaMechanismConfig Addr []string Topic string Balancer kafka.Balancer Async bool MaxAttempts int }
type LauncherConfig ¶ added in v0.5.10
type MongoConfig ¶ added in v0.5.10
type PostgresConfig ¶ added in v0.5.10
type RedisConfig ¶ added in v0.5.10
type SentryConfig ¶ added in v0.5.10
type TraceProviderConfig ¶ added in v0.5.35
Click to show internal directories.
Click to hide internal directories.