pubsubextender

package
v0.0.0-...-5143a5f Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidGracePeriod = errors.New("invalid grace period")

Functions

This section is empty.

Types

type Extender

type Extender struct {
	Deadline    time.Duration
	GracePeriod time.Duration
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, subURL string, sub *pubsub.Subscription) (*Extender, error)

func (*Extender) Start

func (e *Extender) Start(ctx context.Context, msg *pubsub.Message, callback func()) (*MessageExtender, error)

type MessageExtender

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

func (*MessageExtender) IsRunning

func (me *MessageExtender) IsRunning() bool

func (*MessageExtender) Stop

func (me *MessageExtender) Stop() error

Jump to

Keyboard shortcuts

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