events

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultService

type DefaultService struct {
	// contains filtered or unexported fields
}

func New

func New(dbShard *db.DBx, l zerolog.Logger) *DefaultService

func (*DefaultService) Add

func (d *DefaultService) Add(item *Record) error

func (*DefaultService) Listen

func (d *DefaultService) Listen(ctx context.Context)

func (*DefaultService) Stop

func (d *DefaultService) Stop()

type Record

type Record struct {
	Timestamp time.Time
	UserID    string
	Recipient string
	Channel   string
	Success   bool
	Msg       string
}

type Service

type Service interface {
	Add(i *Record) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL