api

package
v2.0.0-...-6b45633 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BASEPATH = "/api/v1"

Variables

This section is empty.

Functions

func NewController

func NewController(conf *config.ApiConfig, cert *tls.Certificate, dbClient *databasePG.Client) (*controller, error)

func NewResultMessage

func NewResultMessage(ctx *gin.Context, status int, err error)

func Startup

func Startup(conf *config.ApiConfig, dbClient *databasePG.Client, wg *sync.WaitGroup, log *logging.Logger) (service.ShutdownService, error)

Types

type HTTPResultMessage

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

type NewMediaItemRequestBody

type NewMediaItemRequestBody struct {
	//	Collection string `json:"collection" example:"erara" format:"string"`
	Signature string `json:"signature" example:"sig-4711" format:"string"`
	URN       string `json:"urn" example:"vfs://digispace/data/test.zip/image.tif" format:"string"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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