publisher

package
v0.0.0-...-91eb443 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

func New

func New(pubClient TaskPublisherClient) *Task

func (*Task) Created

func (p *Task) Created(ctx context.Context, task internal.Task) error

func (*Task) Deleted

func (p *Task) Deleted(ctx context.Context, id string) error

func (*Task) Updated

func (p *Task) Updated(ctx context.Context, task internal.Task) error

type TaskPublisher

type TaskPublisher interface {
	Created(ctx context.Context, task internal.Task) error
	Deleted(ctx context.Context, id string) error
	Updated(ctx context.Context, task internal.Task) error
}

type TaskPublisherClient

type TaskPublisherClient interface {
	Publish(ctx context.Context, spanName, channel string, e interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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