Documentation ¶
Index ¶
- func CleanTopic(ctx context.Context, client *pubsub.Client, params CleanParams) error
- func ListSubscriptions(ctx context.Context, client *pubsub.Client, topicID string) error
- func ListTopics(ctx context.Context, client *pubsub.Client, recursive bool) error
- func Pipe(ctx context.Context, client *pubsub.Client, params PipeParams) error
- func Publish(ctx context.Context, client *pubsub.Client, params PublishParams) error
- func Subscribe(ctx context.Context, client *pubsub.Client, params SubscribeParams) error
- type CleanParams
- type PipeParams
- type PublishParams
- type SubscribeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTopic ¶
CleanTopic will look at all subscriptions in the given topic and remove old pubsubcat temporary topics.
func ListSubscriptions ¶
ListSubscriptions outputs the request topic and all it's subscriptions
func ListTopics ¶
ListTopics outputs all the topics fetched from the pubsub.Client.
func Pipe ¶
Pipe will create a random subscription on inTopicID and forward all messages to the given outTopicID.
Types ¶
type CleanParams ¶
CleanParams allows config over the Clean task.
type PipeParams ¶
type PipeParams struct { Verbosity int InTopicID string OutTopicID string Blocking bool Count int NoCleanup bool }
PipeParams allows config over the Pipe task.
type PublishParams ¶
PublishParams allows config over the Publish task.
Click to show internal directories.
Click to hide internal directories.