pubsub

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents cloud pubsub client.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient returns cloud pubsub client.

type PubSub

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

PubSub implements repository.Action for pubsub.

func New

func New(cli *Client, ac model.ActionConfig) *PubSub

New returns an action for cloud pubsub.

func (*PubSub) List

List lists schedule events from cloud pubsub action scheduler.

func (*PubSub) Register

func (a *PubSub) Register(_ context.Context, events ...model.ScheduleEvent) error

Register registers schedule events to cloud pubsub action scheduler.

func (*PubSub) Unregister

func (a *PubSub) Unregister(_ context.Context, events ...model.ScheduleEvent) error

Unregister unregisters schedule events from cloud pubsub action scheduler.

Jump to

Keyboard shortcuts

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