do not export REST functions.

This commit is contained in:
Miroslav Šedivý 2020-11-18 22:35:50 +01:00
parent 1ae6f05c73
commit ef03f9ec9d
6 changed files with 28 additions and 28 deletions

View file

@ -15,7 +15,7 @@ type ScreenConfigurationPayload struct {
Rate int `json:"rate"`
}
func (h *RoomHandler) ScreenConfiguration(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) {
size := h.desktop.GetScreenSize()
if size == nil {
@ -30,7 +30,7 @@ func (h *RoomHandler) ScreenConfiguration(w http.ResponseWriter, r *http.Request
})
}
func (h *RoomHandler) ScreenConfigurationChange(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) screenConfigurationChange(w http.ResponseWriter, r *http.Request) {
data := &ScreenConfigurationPayload{}
if !utils.HttpJsonRequest(w, r, data) {
return
@ -55,7 +55,7 @@ func (h *RoomHandler) ScreenConfigurationChange(w http.ResponseWriter, r *http.R
utils.HttpSuccess(w, data)
}
func (h *RoomHandler) ScreenConfigurationsList(w http.ResponseWriter, r *http.Request) {
func (h *RoomHandler) screenConfigurationsList(w http.ResponseWriter, r *http.Request) {
list := []ScreenConfigurationPayload{}
ScreenConfigurations := h.desktop.ScreenConfigurations()