controller

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package controller serves the data product and SCP data storage routes.

Index

Constants

This section is empty.

Variables

View Source
var MaxUploadBytes int64 = 5 << 30

5 GB

Functions

This section is empty.

Types

type DataProductController

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

DataProductController serves /api/v1/data-products.

func NewDataProductController

func NewDataProductController(svc *service.DataProductService) *DataProductController

NewDataProductController returns a handler delegating to svc.

func (*DataProductController) Register

func (h *DataProductController) Register(mux *http.ServeMux)

Register mounts the data product routes.

The literal /me and /shared-with-me patterns take precedence over /{dataProductId}, so neither is ever mistaken for a product id.

type DataTransferController

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

func (*DataTransferController) Register

func (h *DataTransferController) Register(mux *http.ServeMux)

type SCPDataStorageController

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

SCPDataStorageController serves /api/v1/scp-data-storages.

func NewSCPDataStorageController

func NewSCPDataStorageController(svc *service.SCPDataStorageService) *SCPDataStorageController

NewSCPDataStorageController returns a handler delegating to svc.

func (*SCPDataStorageController) Register

func (h *SCPDataStorageController) Register(mux *http.ServeMux)

Register mounts the storage routes.

The literal /me and /shared-with-me patterns take precedence over /{dataStorageId}, so neither is ever mistaken for a storage id.

type VirtualDataDirectoryController

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

VirtualDataDirectoryController serves /api/v1/virtual-data-directories.

func NewVirtualDataDirectoryController

func NewVirtualDataDirectoryController(svc *service.VirtualDataDirectoryService) *VirtualDataDirectoryController

NewVirtualDataDirectoryController returns a handler delegating to svc.

func (*VirtualDataDirectoryController) Register

func (h *VirtualDataDirectoryController) Register(mux *http.ServeMux)

Register mounts the virtual data directory routes.

The literal /me and /shared-with-me patterns take precedence over /{virtualDataDirectoryId}, so neither is ever mistaken for a directory id.

type VirtualDataFileController

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

VirtualDataFileController serves /api/v1/virtual-data-files.

Files are addressed at the top level rather than under their directory: a file moves between directories, so nesting its id under one would change its URL whenever it was moved. Listing them is the exception, since "what is in this directory" is a question about the directory.

func NewVirtualDataFileController

func NewVirtualDataFileController(svc *service.VirtualDataFileService) *VirtualDataFileController

NewVirtualDataFileController returns a handler delegating to svc.

func (*VirtualDataFileController) Register

func (h *VirtualDataFileController) Register(mux *http.ServeMux)

Register mounts the virtual data file routes.

Jump to

Keyboard shortcuts

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