Documentation ¶
Index ¶
Constants ¶
View Source
const ( Video = iota Audio Image )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func NewData ¶
func NewData(title string, formats []string, fileType FileTypeContract, encoder func() EncoderContract) *Data
func (Data) GetFileType ¶
func (data Data) GetFileType() FileTypeContract
func (Data) GetFormats ¶
func (Data) NewEncoder ¶
func (data Data) NewEncoder() EncoderContract
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(name string, parameters map[string]ParameterContract, getParams func(parameters map[string]ParameterContract) []string) *Encoder
func (*Encoder) GetParameter ¶
func (e *Encoder) GetParameter(name string) (ParameterContract, error)
type EncoderContract ¶
type EncoderContract interface { GetName() string GetParams() []string GetParameter(name string) (ParameterContract, error) }
type EncoderDataContract ¶
type EncoderDataContract interface { GetTitle() string GetFormats() []string GetFileType() FileTypeContract NewEncoder() EncoderContract }
type FileTypeContract ¶
func GetListFileType ¶
func GetListFileType() []FileTypeContract
type Parameter ¶
type Parameter struct {
// contains filtered or unexported fields
}
func NewParameter ¶
func (*Parameter) SetDisable ¶
func (p *Parameter) SetDisable()
Click to show internal directories.
Click to hide internal directories.