models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package models provides the interfaces and types that various model packages will need to implement or use. These are exposed private types that can only be implemented by sub-packages of the models package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPromiseTimeout is returned when the context on a Promise() call times out.
	ErrPromiseTimeout = fmt.Errorf("promise timeout")
	// ErrBatchSize is returned when the batch size is too large.
	ErrBatchSize = fmt.Errorf("batch size too large")
)

Functions

This section is empty.

Types

type Event

type Event = private.Event

Event is the interface that is JSON encoded and sent over the wire. Notifications (which are wrappers) are converted to events.

type Notifications

type Notifications = private.Notifications

Notifications is the interface that must be implemented by all notification types across models.

Directories

Path Synopsis
internal
private
Private provides private interfaces that are not meant to be used outside of the models package.
Private provides private interfaces that are not meant to be used outside of the models package.
v3
schema/envelope
Package envelope provides the types and functions for sending events to the ARN service.
Package envelope provides the types and functions for sending events to the ARN service.
schema/types
Package types provides the types used in the ARN service on the wire.
Package types provides the types used in the ARN service on the wire.
Package version provides the schema version of the SDK.
Package version provides the schema version of the SDK.

Jump to

Keyboard shortcuts

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