pscleaner

package
v0.0.0-...-e730c8b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	Config Config
	// contains filtered or unexported fields
}

Cleaner is our local struct for holding config, context and pubsub client to GCE

func NewCleaner

func NewCleaner(config Config) (Cleaner, error)

NewCleaner creates a publisher using GCE PubSub backend

func (*Cleaner) CleanTopicSubscriptions

func (c *Cleaner) CleanTopicSubscriptions() error

CleanTopicSubscriptions will clean subscrbers per the CleanerConfig

type Config

type Config struct {
	NoOP    bool
	Keep    string
	Topic   string
	Project string
}

Config is what you pass to the various cleaners

Jump to

Keyboard shortcuts

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