Documentation
¶
Index ¶
- Constants
- Variables
- func RecordAudioForm(r xlog.Request) xlog.Output
- func RecordCameraForm(r xlog.Request) xlog.Output
- func RecordScreenForm(r xlog.Request) xlog.Output
- func ScreenshotForm(r xlog.Request) xlog.Output
- func UploadForm(r xlog.Request) xlog.Output
- type RecordAudio
- type RecordCamera
- type RecordScreen
- type Screenshot
- type Upload
- type UploadFile
Constants ¶
const MAX_FILE_UPLOAD = 1 * gb
const PUBLIC_PATH = "public"
Variables ¶
var ( IMAGES_EXTENSIONS = []string{".jpg", ".jpeg", extPNG, ".gif", ".svg", ".webp"} VIDEOS_EXTENSIONS = []string{extWebM} AUDIO_EXTENSIONS = []string{".wave", ".ogg", ".opus", extMP3} )
Functions ¶
func RecordAudioForm ¶ added in v1.7.0
RecordAudioForm renders the audio recording interface for a specified page. It accepts a page name via the "page" form parameter and returns an HTML interface that allows users to record audio using their microphone and save it to the page.
func RecordCameraForm ¶ added in v1.7.0
RecordCameraForm renders the camera recording interface for a specified page. It accepts a page name via the "page" form parameter and returns an HTML interface that allows users to record video using their camera and save it to the page.
func RecordScreenForm ¶ added in v1.7.0
RecordScreenForm renders the screen recording interface for a specified page. It accepts a page name via the "page" form parameter and returns an HTML interface that allows users to record their screen and save the recording to the page.
func ScreenshotForm ¶ added in v1.7.0
ScreenshotForm renders the screenshot capture interface for a specified page. It accepts a page name via the "page" form parameter and returns an HTML interface that allows users to capture and save screenshots directly to the page.
Types ¶
type RecordAudio ¶ added in v1.7.0
type RecordAudio struct {
// contains filtered or unexported fields
}
func (RecordAudio) Icon ¶ added in v1.7.0
func (RecordAudio) Icon() string
func (RecordAudio) Name ¶ added in v1.7.0
func (RecordAudio) Name() string
type RecordCamera ¶ added in v1.7.0
type RecordCamera struct {
// contains filtered or unexported fields
}
func (RecordCamera) Icon ¶ added in v1.7.0
func (RecordCamera) Icon() string
func (RecordCamera) Name ¶ added in v1.7.0
func (RecordCamera) Name() string
type RecordScreen ¶ added in v1.7.0
type RecordScreen struct {
// contains filtered or unexported fields
}
func (RecordScreen) Icon ¶ added in v1.7.0
func (RecordScreen) Icon() string
func (RecordScreen) Name ¶ added in v1.7.0
func (RecordScreen) Name() string
type Screenshot ¶ added in v1.7.0
type Screenshot struct {
// contains filtered or unexported fields
}
func (Screenshot) Icon ¶ added in v1.7.0
func (Screenshot) Icon() string
func (Screenshot) Name ¶ added in v1.7.0
func (Screenshot) Name() string
type UploadFile ¶ added in v1.7.0
type UploadFile struct{}
func (UploadFile) Init ¶ added in v1.7.0
func (UploadFile) Init()
func (UploadFile) Name ¶ added in v1.7.0
func (UploadFile) Name() string