Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(data *ServiceData) *mux.Router
NewRouter creates the router for HTTP service
func StartWebServer ¶
func StartWebServer(data *ServiceData) error
StartWebServer starts the HTTP service and listens for the requests
Types ¶
type FileLoader ¶
FileLoader loads file by the name
type FileNameProvider ¶
FileNameProvider provider audio file name by ID
type FileResult ¶
type FileResult struct {
ID string `json:"id"`
}
FileResult - post method response in JSON
type ServiceData ¶
type ServiceData struct {
// contains filtered or unexported fields
}
ServiceData keeps data required for service work
Click to show internal directories.
Click to hide internal directories.