ingest

package
v0.0.0-...-cc47adc Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToS3

func ImageToS3(ctx context.Context, imageBytes []byte, metadata Metadata) error

func Init

func Init()

Initalize the service

Types

type Metadata

type Metadata struct {
	BatchId string `json:"batch_id" validate:"required"`
	UserId  string `json:"user_id" validate:"required"`
	Type    string `json:"type" validate:"required"`
	Name    string `json:"name" validate:"required"`
	IsFinal bool   `json:"is_final"`
}

Metadata is the json string sent with the Ingest request

func (*Metadata) Attributes

func (c *Metadata) Attributes() []attribute.KeyValue

func (*Metadata) SlogAttributes

func (c *Metadata) SlogAttributes() []slog.Attr

func (*Metadata) Validate

func (c *Metadata) Validate() error

validate the config

Jump to

Keyboard shortcuts

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