Documentation
¶
Index ¶
Constants ¶
View Source
const ChunkSize = 1024 * 1024 * 2.5
ChunkSize is 2.5MB
View Source
const Video2Path = "/streaming_root/internal/infrastructure/static/tmp/video/example_video_2_new.mp4"
View Source
const Video3Path = "/streaming_root/internal/infrastructure/static/tmp/video/example_video_3_new.mp4"
View Source
const VideoPath = "/streaming_root/internal/infrastructure/static/tmp/video/example_video_new.mp4"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioService ¶
type AudioService struct { }
func NewAudioService ¶
func NewAudioService() *AudioService
type ReaderService ¶
type ReaderService struct {
// contains filtered or unexported fields
}
func NewReaderService ¶
func NewReaderService(logger Logger) *ReaderService
type StreamingService ¶
type StreamingService struct {
// contains filtered or unexported fields
}
func NewStreamingService ¶
func NewStreamingService( reader Reader, logger Logger, ) *StreamingService
func (*StreamingService) Stream ¶
func (s *StreamingService) Stream(conn *websocket.Conn)
type VideoService ¶
type VideoService struct {
// contains filtered or unexported fields
}
func NewVideoService ¶
func NewVideoService( ctx context.Context, logger Logger, builder builder.Video, validator validator.Video, repository repository.Video, ) *VideoService
func (*VideoService) Create ¶
func (s *VideoService) Create(video dto.CreateRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.