listener

package
v0.0.0-...-8d4c7b2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ID             int64        `db:"id"`
	Email          string       `db:"email"`
	Symbol         string       `db:"symbol"`
	Price          int64        `db:"price"`
	MarkedToSendAt sql.NullTime `db:"marked_to_send_at"`
	SendAt         sql.NullTime `db:"sent_at"`
	CreatedAt      time.Time    `db:"created_at"`
	UpdatedAt      time.Time    `db:"updated_at"`
}

type Listener

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

func NewListener

func NewListener(logger *zap.SugaredLogger, cfg *config.Config) (*Listener, error)

func (*Listener) Run

func (l *Listener) Run() error

func (*Listener) Stop

func (l *Listener) Stop()

Jump to

Keyboard shortcuts

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