datas3t

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDatas3tRequest

type AddDatas3tRequest struct {
	Name   string `json:"name"`
	Bucket string `json:"bucket"`
}

func (*AddDatas3tRequest) Validate

func (r *AddDatas3tRequest) Validate(ctx context.Context) error

type Datas3tInfo

type Datas3tInfo struct {
	Datas3tName      string `json:"datas3t_name"`
	BucketName       string `json:"bucket_name"`
	DatarangeCount   int64  `json:"datarange_count"`
	TotalDatapoints  int64  `json:"total_datapoints"`
	LowestDatapoint  int64  `json:"lowest_datapoint"`
	HighestDatapoint int64  `json:"highest_datapoint"`
	TotalBytes       int64  `json:"total_bytes"`
}

type Datas3tServer

type Datas3tServer struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db *pgxpool.Pool, encryptionKey string) (*Datas3tServer, error)

func (*Datas3tServer) AddDatas3t

func (s *Datas3tServer) AddDatas3t(ctx context.Context, log *slog.Logger, req *AddDatas3tRequest) (err error)

func (*Datas3tServer) ListDatas3ts

func (s *Datas3tServer) ListDatas3ts(ctx context.Context, log *slog.Logger) ([]Datas3tInfo, error)

type ValidationError

type ValidationError error

Jump to

Keyboard shortcuts

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