subscriber

package
v0.0.0-...-8c1580d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileName

type FileName struct {
	Name string
}

type Handler

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

func MustNewHandlerJSON

func MustNewHandlerJSON(sPhrase services.Phrase) *Handler

func (Handler) Process

func (h Handler) Process(ctx context.Context, rc *storage.Reader, fileID string) error

type Subscriber

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

func MustNewSubscriber

func MustNewSubscriber(sFile services.File, strg storage.Storage, handler Handler) *Subscriber

func (Subscriber) DownloadDoc

func (s Subscriber) DownloadDoc(ctx context.Context, docName string) (*googleStorage.Reader, error)

func (Subscriber) HandleMessage

func (s Subscriber) HandleMessage(ctx context.Context, m *pubsub.Message) error

Jump to

Keyboard shortcuts

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