queue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Push(entity *pkg.TemplgridEmailEntity) error
	GetChannel() (chan *pkg.TemplgridEmailEntity, error)
	Run(ctx context.Context) error
}

type InternalQueue

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

func NewInternalQueue

func NewInternalQueue(log logging.Logger) *InternalQueue

func (*InternalQueue) GetChannel

func (q *InternalQueue) GetChannel() (chan *pkg.TemplgridEmailEntity, error)

func (*InternalQueue) Push

func (q *InternalQueue) Push(entity *pkg.TemplgridEmailEntity) error

func (*InternalQueue) Run

func (q *InternalQueue) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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