backend

package
v0.0.0-...-d3eaf0f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

A package for updating our Backend state

Index

Constants

View Source
const ObaoTempStore = "/tmp/"

Where we temporarily store the Obao file

Variables

This section is empty.

Functions

func DeleteObao

func DeleteObao(hash string) (err error)

Delete the obao file from temp storage

func WriteToS3

func WriteToS3(meta_data MetaData) error

Write our Meta-Data, Obao file, and Endpoint to S3 into their respective buckets All data is indexed by the deal ID

Types

type MetaData

type MetaData struct {
	// The CID of the file as a string
	Cid string
	// The blake3 hash of the file as a string
	Hash string
	// The size of the file
	Size int64
}

What data we need to write to S3

Jump to

Keyboard shortcuts

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