api

package
v2.0.0-...-46599a7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const BASEPATH = "/api/v1"

Variables

This section is empty.

Functions

func NewController

func NewController(addr, extAddr string, tlsConfig *tls.Config, dbClient mediaserverdbproto.DBControllerClient, logger zLogger.ZLogger) (*controller, error)

func NewResultMessage

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

Types

type CreateItemMessage

type CreateItemMessage struct {
	Signature     string `json:"signature"`
	Urn           string `json:"path"`
	Public        string `json:"public,omitempty"`
	Parent        string `json:"parent,omitempty"`
	PublicActions string `json:"public_actions,omitempty"`
}

type HTTPCollectionResultMessage

type HTTPCollectionResultMessage struct {
	Name            string `json:"identifier,omitempty"`
	Description     string `json:"description,omitempty"`
	SignaturePrefix string `json:"signature_prefix,omitempty"`
	Secret          string `json:"secret,omitempty"`
	Public          string `json:"public,omitempty"`
	Jwtkey          string `json:"jwtkey,omitempty"`
	Storageid       string `json:"storageid,omitempty"`
}

type HTTPIngestItemMessage

type HTTPIngestItemMessage struct {
	Collection string `json:"collection"`
	Signature  string `json:"signature"`
	Urn        string `json:"path"`
}

type HTTPResultMessage

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

type HTTPStorageResultMessage

type HTTPStorageResultMessage struct {
	Id         string `json:"id,omitempty"`
	Name       string `json:"name,omitempty"`
	Filebase   string `json:"filebase,omitempty"`
	Datadir    string `json:"datadir,omitempty"`
	Subitemdir string `json:"subitemdir,omitempty"`
	Tempdir    string `json:"tempdir,omitempty"`
}

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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