Documentation ¶
Index ¶
- type Annotator
- func (a *Annotator) CreateAnnotations(url string) ([]string, error)
- func (a *Annotator) FromRecord(uri string, record *models.Broadcast) ([]string, error)
- func (a *Annotator) LoadPeaks(uri string, files []*models.AudioFile, filePath string, peakPath string) []string
- func (a *Annotator) LoadSegments(uri string, files []*models.AudioFile, record *models.Broadcast, ...) []string
- type AnnotatorOptions
- type AudioFileServiceInterface
- type BroadcastServiceInterface
- type Client
- type ClientInterface
- type File
- type FileInterface
- type LoggedInClientInterface
- type Storage
- type StorageInterface
- type UserServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotator ¶
type Annotator struct {
// contains filtered or unexported fields
}
Annotator implementation for RAAR
func NewAnnotator ¶
func NewAnnotator(wapClient annotator.ClientInterface, options *AnnotatorOptions) *Annotator
NewAnnotator gets an Annotator
func (*Annotator) CreateAnnotations ¶
CreateAnnotations based on RAAR data and files.
func (*Annotator) FromRecord ¶
FromRecord ...
type AnnotatorOptions ¶
type AnnotatorOptions struct { RAARUsername string RAARPassword string RAARDownloadPrefix string StorageEndpoint string StorageAccessKey string StorageAccessSecret string StorageUseSSL bool PeaksStorageBucket string PeaksStoragePublicURL string PeaksAnnotationContainer string SonicAnnotatorTransform string SonicannotatorAnnotationContainer string }
AnnotatorOptions ...
type AudioFileServiceInterface ¶
type AudioFileServiceInterface interface { GetBroadcastsBroadcastIDAudioFiles( params *audio_file.GetBroadcastsBroadcastIDAudioFilesParams, authInfo runtime.ClientAuthInfoWriter, ) (*audio_file.GetBroadcastsBroadcastIDAudioFilesOK, error) }
AudioFileServiceInterface ...
type BroadcastServiceInterface ¶
type BroadcastServiceInterface interface { GetBroadcastsYearMonthDay( params *broadcast.GetBroadcastsYearMonthDayParams, authInfo runtime.ClientAuthInfoWriter, ) (*broadcast.GetBroadcastsYearMonthDayOK, error) GetBroadcastsID( params *broadcast.GetBroadcastsIDParams, authInfo runtime.ClientAuthInfoWriter, ) (*broadcast.GetBroadcastsIDOK, error) }
BroadcastServiceInterface for RAAR API
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client concrete type
func (*Client) GetBroadcasts ¶
GetBroadcasts ...
type ClientInterface ¶
type ClientInterface interface {
Login(username string, password string) LoggedInClientInterface
}
ClientInterface for clients
type File ¶
type File struct {
// contains filtered or unexported fields
}
File ...
type FileInterface ¶
type FileInterface interface { HasDownload() bool Download(uri string) error Path() string HasPeaks() bool PeakPath() string HasSegments() string SegmentsPath() string }
FileInterface ...
type LoggedInClientInterface ¶
type LoggedInClientInterface interface { GetBroadcasts(date time.Time) []*models.Broadcast GetRecord(uri string) *models.Broadcast GetFiles(record *models.Broadcast) []*models.AudioFile }
LoggedInClientInterface ...
type StorageInterface ¶
type StorageInterface interface { Init() StorageInterface Store(url string, filePath string, contentType string) (string, error) }
StorageInterface ...
func NewStorage ¶
func NewStorage(endpoint string, accessKey string, accessSecret string, useSSL bool, bucketName string) StorageInterface
NewStorage ...
type UserServiceInterface ¶
type UserServiceInterface interface {
PostLogin(params *user.PostLoginParams) (*user.PostLoginOK, error)
}
UserServiceInterface ...
Click to show internal directories.
Click to hide internal directories.