task

package
v0.0.0-...-0fc97c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by pubsub generator DO NOT EDIT.

Code generated by pubsub generator DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubSubHandler

func NewPubSubHandler(sub Subscriber) *pubSubHandler

Types

type Publisher

type Publisher interface {
	PublishTask(ctx context.Context, subject *Task) error
}

func NewPublisher

func NewPublisher(pubsubClient infra.Client) Publisher

type Subscriber

type Subscriber interface {
	Run(ctx context.Context, message *Task) error
}

type Task

type Task struct {
	Message string
}

Directories

Path Synopsis
Package mock_task is a generated GoMock package.
Package mock_task is a generated GoMock package.

Jump to

Keyboard shortcuts

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