api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespacePrefix namespace for the client and CLI
	NamespacePrefix = "/a/v1"

	// InitRoute route to InitEndpoint
	InitRoute = "/init/:userid/:parent"

	// AssetRoute route to asset related andpoints: AssetUploadEndpoint, AssetListEndpoint, AssetDeleteEndpoint
	AssetRoute       = "/asset/:parent"
	AssetDeleteRoute = "/asset/:parent/:asset"

	// WebhookRoute route to recieve call-back notifications
	WebhookRoute = "/static/:parent"

	UploadFormName = "asset"
)

Variables

This section is empty.

Functions

func AssetDeleteEndpoint added in v0.10.0

func AssetDeleteEndpoint(c echo.Context) error

AssetDeleteEndpoint removes a media asset from the CDN

func AssetListEndpoint added in v0.10.0

func AssetListEndpoint(c echo.Context) error

AssetListEndpoint returns a list of media assets for a given show

func AssetUploadEndpoint added in v0.10.0

func AssetUploadEndpoint(c echo.Context) error

AssetUploadEndpoint implements content upload to the CDN

func InitEndpoint added in v0.10.0

func InitEndpoint(c echo.Context) error

InitEndpoints creates a new show namespace on the CDN

func MeterAPIRequest added in v0.10.0

func MeterAPIRequest(ctx context.Context, req *http.Request, parent, api string)

func WebhookGithubEndpoint added in v0.10.0

func WebhookGithubEndpoint(c echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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