router

package module
v0.0.0-...-3288158 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(ctx context.Context, m PubSubMessage) error

Types

type Book

type Book struct {
	Author string
	Title  string `json:"title"`
	Isbn13 string `json:"isbn13"`
	Url    string `json:"url"`
}

type PubSubMessage

type PubSubMessage struct {
	// Data SampleMessage `json:"data"`
	Data []byte `json:data`
}

type SampleMessage

type SampleMessage struct {
	ID        uuid.UUID `json:"id"`
	Timestamp time.Time `json:"timestamp"`
	Message   string    `json:"message"`
	Book      Book      `json:"book"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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