web

package
v0.0.0-...-5d123a0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BASEPATH = "/api/v1"

Variables

This section is empty.

Functions

func NewResultMessage

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

Types

type HTTPResultMessage

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

type MainController

type MainController struct {
	// contains filtered or unexported fields
}

func NewMainController

func NewMainController(addr string, extAddr string, tlsConfig *tls.Config, jwtKey string, jwtAlg []string, cacheExpiration time.Duration, logger zLogger.ZLogger) (*MainController, error)

func (*MainController) GracefulStop

func (ctrl *MainController) GracefulStop()

func (*MainController) Init

func (ctrl *MainController) Init() error

func (*MainController) Start

func (ctrl *MainController) Start(wg *sync.WaitGroup)

type StoreRequest

type StoreRequest struct {
	ObjectSignature string   `json:"object_signature"`
	MediaSignature  []string `json:"media_signature" binding:"required"`
	Start           string   `json:"start" binding:"required"`
	End             string   `json:"end"`
}

type VODClaims

type VODClaims struct {
	jwt.RegisteredClaims
	SHA1 string `json:"sha1,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