localserve

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveReadOnlySinceObjectMetaData

func RetrieveReadOnlySinceObjectMetaData(m *manager.Manager) http.HandlerFunc

RetrieveReadOnlySinceObjectMetaData godoc @BasePath /api/v1/readonly GetObjectHead godoc @Summary Get object data locally @Description Returns the metadata/HEAD of the objects that have been created since a certain time @Tags objects @Param since query string true "The unix time since all objects returned should have been created after" @Success 200 @Failure 400 {object} HTTPClientError @Failure 502 {object} HTTPServerError

Types

type HTTPClientError

type HTTPClientError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

HTTPClientError returned when a client error occurs

type HTTPServerError

type HTTPServerError struct {
	Code    int    `json:"code" example:"502"`
	Message string `json:"message" example:"status server error"`
}

HTTPServerError returned when a server error occurs

Jump to

Keyboard shortcuts

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