model

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Type      string `json:"type"`
	MessageId string `json:"messageId"`
}

type EnvelopeWithPayload

type EnvelopeWithPayload[T any] struct {
	Type      string `json:"type"`
	MessageId string `json:"messageId"`
	Payload   T      `json:"data"`
}

type HandlerContext

type HandlerContext struct {
	Event *Envelope
	Msg   []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳