lead

package
v0.0.0-...-8895704 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	S3       S3
	StateDir string
}

type CreateRequest

type CreateRequest struct {
	MaxArchiveSize uint64        `json:"max_archive_size"`
	MaxArchiveTime time.Duration `json:"max_archive_time"`
}

type DatasetConfig

type DatasetConfig struct {
	Name           string `json:"name"`
	MaxArchiveSize uint64 `json:"max_archive_size"`
	MaxArchiveTime uint64 `json:"max_archive_time"`
}

type Lead

type Lead struct {
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	log *slog.Logger,
	cfg Config,
) (*Lead, error)

func (*Lead) AppendSingle

func (l *Lead) AppendSingle(w http.ResponseWriter, r *http.Request)

func (*Lead) Create

func (l *Lead) Create(w http.ResponseWriter, r *http.Request)

func (*Lead) GetDatasetInfo

func (l *Lead) GetDatasetInfo(w http.ResponseWriter, r *http.Request)

type S3

type S3 struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
	Region          string
	Bucket          string
}

Jump to

Keyboard shortcuts

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