objectstorage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package objectstorage defines the transport-agnostic object-storage event contract shared by storage-event adapters (SQS, SNS, EventBridge, …). An adapter parses its source notification into an Event and dispatches it through a Router; application handlers depend only on this package, never on the delivery mechanism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventName string
	Bucket    string
	Key       string
	Size      *int64
}

Event is a parsed, URL-decoded object-storage record (e.g. an S3 object notification) extracted from a delivery message.

type EventHandler

type EventHandler func(e Event) error

EventHandler processes a single object-storage event.

type EventHandlerRegisterer

type EventHandlerRegisterer interface {
	Register(eventName string, h EventHandler)
}

EventHandlerRegisterer maps event names (e.g. "ObjectCreated:*") to handlers; implemented by Router.

Jump to

Keyboard shortcuts

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