{"modulePath":"github.com/apache/airavata","version":"v1.0.0-alpha1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\nPackage controller serves the data product and SCP data storage routes.\n\n## Variables\n\n```go\nvar MaxUploadBytes int64 = 5 \u003c\u003c 30\n```\n5 GB\n\n## Types\n\n```go\ntype DataProductController struct {\n\t// contains filtered or unexported fields\n}\n```\nDataProductController serves /api/v1/data-products.\n\n```go\nfunc NewDataProductController(svc *service.DataProductService) *DataProductController\n```\nNewDataProductController returns a handler delegating to svc.\n\n```go\nfunc (h *DataProductController) Register(mux *http.ServeMux)\n```\nRegister mounts the data product routes.\n\nThe literal /me and /shared-with-me patterns take precedence over /{dataProductId}, so neither is ever mistaken for a product id.\n\n```go\ntype DataTransferController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewDataTransferController(svc *service.DataTransferService) *DataTransferController\n```\n\n```go\nfunc (h *DataTransferController) Register(mux *http.ServeMux)\n```\n\n```go\ntype SCPDataStorageController struct {\n\t// contains filtered or unexported fields\n}\n```\nSCPDataStorageController serves /api/v1/scp-data-storages.\n\n```go\nfunc NewSCPDataStorageController(svc *service.SCPDataStorageService) *SCPDataStorageController\n```\nNewSCPDataStorageController returns a handler delegating to svc.\n\n```go\nfunc (h *SCPDataStorageController) Register(mux *http.ServeMux)\n```\nRegister mounts the storage routes.\n\nThe literal /me and /shared-with-me patterns take precedence over /{dataStorageId}, so neither is ever mistaken for a storage id.\n\n```go\ntype VirtualDataDirectoryController struct {\n\t// contains filtered or unexported fields\n}\n```\nVirtualDataDirectoryController serves /api/v1/virtual-data-directories.\n\n```go\nfunc NewVirtualDataDirectoryController(svc *service.VirtualDataDirectoryService) *VirtualDataDirectoryController\n```\nNewVirtualDataDirectoryController returns a handler delegating to svc.\n\n```go\nfunc (h *VirtualDataDirectoryController) Register(mux *http.ServeMux)\n```\nRegister mounts the virtual data directory routes.\n\nThe literal /me and /shared-with-me patterns take precedence over /{virtualDataDirectoryId}, so neither is ever mistaken for a directory id.\n\n```go\ntype VirtualDataFileController struct {\n\t// contains filtered or unexported fields\n}\n```\nVirtualDataFileController serves /api/v1/virtual-data-files.\n\nFiles 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.\n\n```go\nfunc NewVirtualDataFileController(svc *service.VirtualDataFileService) *VirtualDataFileController\n```\nNewVirtualDataFileController returns a handler delegating to svc.\n\n```go\nfunc (h *VirtualDataFileController) Register(mux *http.ServeMux)\n```\nRegister mounts the virtual data file routes.\n\n","path":"github.com/apache/airavata/api/data/controller","name":"controller","synopsis":"Package controller serves the data product and SCP data storage routes.","isRedistributable":true}
