Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionStrategy ¶
type StreamByIDActionStrategy ¶
type StreamByIDActionStrategy struct {
// contains filtered or unexported fields
}
func NewStreamByIDActionStrategy ¶
func NewStreamByIDActionStrategy( ctx context.Context, logger logger.Logger, videoRepository repository.Video, reader reader.FileReader, codecInfo detector.Detector, communicator proto.Communicator, ) *StreamByIDActionStrategy
func (*StreamByIDActionStrategy) Do ¶
func (s *StreamByIDActionStrategy) Do(action model.Action) error
Do - will be streaming a target resource by ID.
func (*StreamByIDActionStrategy) IsAppropriate ¶
func (s *StreamByIDActionStrategy) IsAppropriate(action model.Action) bool
IsAppropriate - method will tell the service architect that the strategy is acceptable.
type StreamByIDWithOffsetActionStrategy ¶
type StreamByIDWithOffsetActionStrategy struct {
// contains filtered or unexported fields
}
func NewStreamByIDWithOffsetActionStrategy ¶
func NewStreamByIDWithOffsetActionStrategy( ctx context.Context, logger logger.Logger, videoRepository repository.Video, reader reader.FileReader, codecInfo detector.Detector, communicator proto.Communicator, chunkSize int, ) *StreamByIDWithOffsetActionStrategy
func (*StreamByIDWithOffsetActionStrategy) Do ¶
func (s *StreamByIDWithOffsetActionStrategy) Do(action model.Action) error
Do - will be streaming a target resource by ID from given offset.
func (*StreamByIDWithOffsetActionStrategy) IsAppropriate ¶
func (s *StreamByIDWithOffsetActionStrategy) IsAppropriate(action model.Action) bool
IsAppropriate - method will tell the service architect that the strategy is acceptable.
Click to show internal directories.
Click to hide internal directories.