Documentation ¶
Index ¶
- Variables
- func NewAPIRouter(r *mux.Router, api API)
- func NewAuthRouter(r *mux.Router, api API)
- type API
- func (a API) AddAudio(w http.ResponseWriter, r *http.Request)
- func (a API) DeleteAudioByID(w http.ResponseWriter, r *http.Request)
- func (a API) GetAudioByID(w http.ResponseWriter, r *http.Request)
- func (a API) GetAudioList(w http.ResponseWriter, r *http.Request)
- func (a API) SignUp(w http.ResponseWriter, r *http.Request)
- func (a API) UpdateAudioByID(w http.ResponseWriter, r *http.Request)
- type AddAudioRequest
- type AddAudioResponse
- type DeleteAudioByIDRequest
- type DeleteAudioByIDResponse
- type ErrorResponse
- type FileManager
- type GetAudioByIDRequest
- type GetAudioByIDResponse
- type GetAudioListResponse
- type SignUpRequest
- type SignUpResponse
- type UpdateAudioByIDRequest
- type UpdateAudioByIDResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var BodyParseError = "BODY PARSE ERROR"
View Source
var DeleteAudioError = "DELETE AUDIO ERROR"
View Source
var FileReadError = "FILE READ ERROR"
View Source
var FileUploadError = "FILE UPLOAD ERROR"
View Source
var FileWriteError = "FILE WRITE ERROR"
View Source
var HLSError = "HLS ERROR"
View Source
var IDParseError = "ID PARSE ERROR"
View Source
var InternalServerError = "INTERNAL SERVER ERROR"
View Source
var NotFoundError = "NOT FOUND ERROR"
View Source
var ParseFormError = "PARSE FORM ERROR"
View Source
var QueryStringError = "QUERY STRING ERROR"
View Source
var ServiceError = "SERVICE ERROR"
View Source
var ValidationError = "VALIDATION ERROR"
Functions ¶
func NewAPIRouter ¶
func NewAuthRouter ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (API) DeleteAudioByID ¶
func (a API) DeleteAudioByID(w http.ResponseWriter, r *http.Request)
func (API) GetAudioByID ¶
func (a API) GetAudioByID(w http.ResponseWriter, r *http.Request)
func (API) GetAudioList ¶
func (a API) GetAudioList(w http.ResponseWriter, r *http.Request)
func (API) UpdateAudioByID ¶
func (a API) UpdateAudioByID(w http.ResponseWriter, r *http.Request)
type AddAudioRequest ¶
type AddAudioResponse ¶
type DeleteAudioByIDRequest ¶
type DeleteAudioByIDRequest struct {
ID string
}
type DeleteAudioByIDResponse ¶
type DeleteAudioByIDResponse struct { }
type ErrorResponse ¶
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
func NewFileManager ¶
func NewFileManager(base string) FileManager
func (FileManager) Delete ¶
func (m FileManager) Delete(w http.ResponseWriter, id string) error
func (FileManager) Upload ¶
func (m FileManager) Upload(w http.ResponseWriter, r *http.Request, id string) error
type GetAudioByIDRequest ¶
type GetAudioByIDRequest struct {
ID string
}
type GetAudioByIDResponse ¶
type GetAudioByIDResponse AddAudioResponse
type GetAudioListResponse ¶
type SignUpRequest ¶
type SignUpResponse ¶
type SignUpResponse struct{}
type UpdateAudioByIDRequest ¶
type UpdateAudioByIDResponse ¶
type UpdateAudioByIDResponse AddAudioResponse
Click to show internal directories.
Click to hide internal directories.