receiver

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Status   Status
	Protocol string
	Body     interface{}
}

Message -

type Receiver

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

Receiver -

func New

func New(urls []string, network string, opts ...ReceiverOption) (*Receiver, error)

New -

func (*Receiver) Close

func (indexer *Receiver) Close() error

Close -

func (*Receiver) Operations

func (indexer *Receiver) Operations() <-chan Message

Operations -

func (*Receiver) Start

func (indexer *Receiver) Start(ctx context.Context)

Start -

type ReceiverOption

type ReceiverOption func(*Receiver)

ReceiverOption -

func WithBlockTime added in v0.3.0

func WithBlockTime(blockTime int64) ReceiverOption

WithBlockTime -

func WithPrometheus added in v0.3.0

func WithPrometheus(prom *prometheus.Service) ReceiverOption

WithPrometheus -

func WithStorage

func WithStorage(db *database.PgGo) ReceiverOption

WithStorage -

type Status

type Status string

Status

const (
	StatusApplied       Status = "applied"
	StatusBranchDelayed Status = "branch_delayed"
	StatusBranchRefused Status = "branch_refused"
	StatusRefused       Status = "refused"
	StatusOutdated      Status = "outdated"
	StatusUnprocessed   Status = "unprocessed"
)

Statuses

Jump to

Keyboard shortcuts

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