Documentation ¶
Index ¶
- type Client
- type FragmentError
- type FragmentIDs
- type ListFragmentsOption
- type ListFragmentsOutput
- func (l *ListFragmentsOutput) FragmentIDs() FragmentIDs
- func (l ListFragmentsOutput) Len() int
- func (l *ListFragmentsOutput) Sort()deprecated
- func (l *ListFragmentsOutput) SortByFragmentNumber()
- func (l *ListFragmentsOutput) SortByProducerTimestamp()
- func (l *ListFragmentsOutput) Swap(i, j int)
- func (l *ListFragmentsOutput) Uniq()
- type SortByFragmentNumber
- type SortByProducerTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetMediaForFragmentList ¶
func (*Client) ListFragments ¶
func (c *Client) ListFragments(opts ...ListFragmentsOption) (*ListFragmentsOutput, error)
type FragmentError ¶
func (*FragmentError) Error ¶
func (e *FragmentError) Error() string
type FragmentIDs ¶
type FragmentIDs []*string
func NewFragmentIDs ¶
func NewFragmentIDs(ids ...string) FragmentIDs
type ListFragmentsOption ¶
type ListFragmentsOption func(input *kvam.ListFragmentsInput)
func WithMaxResults ¶
func WithMaxResults(maxResults int64) ListFragmentsOption
func WithNextToken ¶
func WithNextToken(nextToken *string) ListFragmentsOption
func WithProducerTimestampRange ¶
func WithProducerTimestampRange(startTime, endTime time.Time) ListFragmentsOption
func WithServerTimestampRange ¶
func WithServerTimestampRange(startTime, endTime time.Time) ListFragmentsOption
type ListFragmentsOutput ¶
type ListFragmentsOutput struct {
*kvam.ListFragmentsOutput
}
func (*ListFragmentsOutput) FragmentIDs ¶
func (l *ListFragmentsOutput) FragmentIDs() FragmentIDs
func (ListFragmentsOutput) Len ¶
func (l ListFragmentsOutput) Len() int
func (*ListFragmentsOutput) Sort
deprecated
func (l *ListFragmentsOutput) Sort()
Sort is alias of SortByFragmentNumber.
Deprecated: use SortByFragmentNumber or SortByProducerTimestamp
func (*ListFragmentsOutput) SortByFragmentNumber ¶ added in v0.5.3
func (l *ListFragmentsOutput) SortByFragmentNumber()
func (*ListFragmentsOutput) SortByProducerTimestamp ¶ added in v0.5.3
func (l *ListFragmentsOutput) SortByProducerTimestamp()
func (*ListFragmentsOutput) Swap ¶
func (l *ListFragmentsOutput) Swap(i, j int)
func (*ListFragmentsOutput) Uniq ¶ added in v0.6.0
func (l *ListFragmentsOutput) Uniq()
Uniq removes duplicated fragments. Fragments with same ProducerTimestamp excepting the longest one will be removed. List of the fragments must be sorted by ProducerTimestamp before calling Uniq.
type SortByFragmentNumber ¶ added in v0.5.3
type SortByFragmentNumber struct {
*ListFragmentsOutput
}
func (SortByFragmentNumber) Less ¶ added in v0.5.3
func (l SortByFragmentNumber) Less(i, j int) bool
type SortByProducerTimestamp ¶ added in v0.5.3
type SortByProducerTimestamp struct {
*ListFragmentsOutput
}
func (SortByProducerTimestamp) Less ¶ added in v0.5.3
func (l SortByProducerTimestamp) Less(i, j int) bool
Click to show internal directories.
Click to hide internal directories.