Documentation ¶
Index ¶
- Constants
- func DownloadUriToFile(uri string, uriFullFilename string) error
- func GetFilePath(req *pb.Request) (string, error)
- func NewContentStorage(cfg *domain.Config) (domain.Storage, error)
- type Api
- func (a *Api) ListAllRequests(ctx echo.Context) error
- func (a *Api) Live(ctx echo.Context) error
- func (a *Api) Ping(ctx echo.Context) error
- func (a *Api) Ready(ctx echo.Context) error
- func (a *Api) RetrieveResultContent(ctx echo.Context, pType string, requestId string) error
- func (a *Api) RetrieveResultStatus(ctx echo.Context, requestId string) error
- func (a *Api) Start()
- func (a *Api) SubmitRequest(ctx echo.Context, params v1.SubmitRequestParams) error
- type RequestProcessor
- type Scrape
- type SpeedupAudio
- type Text2Mp3
- type YouTube
Constants ¶
View Source
const (
STATSD_REQUEST_ACCEPTED = "rhema.request.accepted"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadUriToFile ¶
DownloadUriToFile downloads the contents of a uri to a local file
func GetFilePath ¶
GetFilePath returns the filename for a given Request
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) ListAllRequests ¶
(GET /list-requests)
func (*Api) RetrieveResultContent ¶
(GET /result/{type}/{request_id})
func (*Api) RetrieveResultStatus ¶
(GET /status/{request_id})
func (*Api) SubmitRequest ¶
func (a *Api) SubmitRequest(ctx echo.Context, params v1.SubmitRequestParams) error
type RequestProcessor ¶
type RequestProcessor struct {
// contains filtered or unexported fields
}
func NewRequestProcessor ¶
type Scrape ¶
type Scrape struct {
// contains filtered or unexported fields
}
Scrape represents everything needed to scrape content from a URL
type SpeedupAudio ¶
type SpeedupAudio struct {
// contains filtered or unexported fields
}
func NewSpeedupAudio ¶
type Text2Mp3 ¶
type Text2Mp3 struct {
// contains filtered or unexported fields
}
func NewText2Mp3 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.