handlers

package
v0.0.0-...-cadae65 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: CC0-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

func New

func New(topic topic.Topic) *Handlers

func (*Handlers) Hook

func (h *Handlers) Hook(ctx context.Context, event pubsub.MessageEvent) error

func (*Handlers) Start

type SomeEvent

type SomeEvent struct {
	Overview  string    `json:"overview" validate:"required"`
	Payload   []byte    `json:"payload" validate:"required"`
	CreatedAt time.Time `json:"created_at" validate:"required"`
}

Jump to

Keyboard shortcuts

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