29 lines
646 B
Go
29 lines
646 B
Go
package handler
|
|
|
|
import (
|
|
"cybertron/service"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type SourceMapHandler struct {
|
|
sourceMapService *service.SourceMapService
|
|
}
|
|
|
|
func NewSourceMapHandler(sourceMapService *service.SourceMapService) *SourceMapHandler {
|
|
return &SourceMapHandler{
|
|
sourceMapService: sourceMapService,
|
|
}
|
|
}
|
|
|
|
func (h *SourceMapHandler) GetSourceMapUploadUrl(c *gin.Context) {
|
|
h.sourceMapService.GetSourceMapUploadUrl(c)
|
|
}
|
|
|
|
func (h *SourceMapHandler) SourceMapUploadAck(c *gin.Context) {
|
|
h.sourceMapService.SourceMapUploadAck(c)
|
|
}
|
|
|
|
func (h *SourceMapHandler) ValidateSourceMap(c *gin.Context) {
|
|
h.sourceMapService.ValidateSourceMap(c)
|
|
}
|