Documentation ¶
Index ¶
- func NewInAppScheduler() gocron.Scheduler
- func NewKafkaConsumerConnection(connStr string, cg string, topic string) *kafka.Reader
- func NewKafkaProducerConnection(connStr string, defaultTopic string) *kafka.Writer
- func NewNatsConnection(connStr string) *nats.Conn
- func NewPostgresDB(connStr string) *gorm.DB
- func NewRedisCacheConnection(appCtx context.Context, connStr string) *redis.Client
- func NewS3Session(connStr string) *s3.S3
- type EventEmitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInAppScheduler ¶
func NewInAppScheduler() gocron.Scheduler
func NewNatsConnection ¶
func NewNatsConnection(connStr string) *nats.Conn
func NewPostgresDB ¶
func NewRedisCacheConnection ¶
func NewS3Session ¶
Types ¶
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter() *EventEmitter
func (*EventEmitter) EmitAsync ¶
func (e *EventEmitter) EmitAsync(ctx context.Context, eventName string, data interface{})
EmitAsync emits an event asynchronously
Click to show internal directories.
Click to hide internal directories.