remover

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 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 Config

type Config struct {
	Nack          bool
	Continuous    bool
	PrefetchCount uint16
	Dsn           string
	QueueName     string
	Regexp        *regexp.Regexp
	MatchType     MatchType
}

type MatchType

type MatchType int
const (
	MatchBody MatchType = iota
	MatchHeaders
)

type Status

type Status struct {
	Processed int
	Removed   int
	Finished  bool
}

type StatusChannel

type StatusChannel <-chan Status

func RemoveMessages

func RemoveMessages(config Config) StatusChannel

Jump to

Keyboard shortcuts

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