Documentation ¶
Index ¶
- func CreateLocalCache(config *ristretto.Config) (*ristretto.Cache, error)
- 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 NewReaderWithTLS(cfg *KafkaConnectionConfig) *kafka.Reader
- func NewWriterWithMechanism(cfg *KafkaWriterWithMechanismConfig) *kafka.Writer
- type Adapter
- type KafkaConnectionConfig
- type KafkaMechanismConfig
- type KafkaWriterWithMechanismConfig
- type MongoConfig
- type PostgresConfig
- type RedisConfig
- type SentryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalCache ¶ added in v0.5.92
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 NewReaderWithTLS ¶ added in v0.5.17
func NewReaderWithTLS(cfg *KafkaConnectionConfig) *kafka.Reader
func NewWriterWithMechanism ¶ added in v0.5.16
func NewWriterWithMechanism(cfg *KafkaWriterWithMechanismConfig) *kafka.Writer
Types ¶
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 MongoConfig ¶ added in v0.5.10
type PostgresConfig ¶ added in v0.5.10
type RedisConfig ¶ added in v0.5.10
Click to show internal directories.
Click to hide internal directories.