Documentation ¶
Index ¶
- Constants
- func AssetDeleteEndpoint(c echo.Context) error
- func AssetListEndpoint(c echo.Context) error
- func AssetUploadEndpoint(c echo.Context) error
- func InitEndpoint(c echo.Context) error
- func MeterAPIRequest(ctx context.Context, req *http.Request, parent, api string)
- func WebhookGithubEndpoint(c echo.Context) error
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 WebhookGithubEndpoint ¶ added in v0.10.0
func WebhookGithubEndpoint(c echo.Context) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.