cleanup to satisfy linter

This commit is contained in:
Maxim Merzhanov authored and Maxim committed 2019-12-27 17:26:48 +03:00
1 parent 11f91b67a8
commit 0222dfd865
15 files changed
+58 -63

No files matched your search

+3 -7
View File
@@ -15,7 +15,7 @@ import (
"isp-config-service/store/state"
)
func (h *socketEventHandler) handleModuleReady(conn etp.Conn, data []byte) []byte {
func (h *SocketEventHandler) handleModuleReady(conn etp.Conn, data []byte) []byte {
moduleName, _ := Parameters(conn) // REMOVE
log.Debugf(0, "handleModuleReady moduleName: %s", moduleName) // REMOVE
declaration := structure.BackendDeclaration{}
@@ -37,7 +37,7 @@ func (h *socketEventHandler) handleModuleReady(conn etp.Conn, data []byte) []byt
return []byte(utils.WsOkResponse)
}
func (h *socketEventHandler) handleModuleRequirements(conn etp.Conn, data []byte) []byte {
func (h *SocketEventHandler) handleModuleRequirements(conn etp.Conn, data []byte) []byte {
moduleName, err := Parameters(conn)
log.Debugf(0, "handleModuleRequirements moduleName: %s", moduleName) // REMOVE
if err != nil {
@@ -59,7 +59,7 @@ func (h *socketEventHandler) handleModuleRequirements(conn etp.Conn, data []byte
return []byte(utils.WsOkResponse)
}
func (h *socketEventHandler) handleConfigSchema(conn etp.Conn, data []byte) []byte {
func (h *SocketEventHandler) handleConfigSchema(conn etp.Conn, data []byte) []byte {
moduleName, err := Parameters(conn)
log.Debugf(0, "handleConfigSchema moduleName: %s", moduleName) // REMOVE
if err != nil {
@@ -115,7 +115,3 @@ func (h *socketEventHandler) handleConfigSchema(conn etp.Conn, data []byte) []by
}
return []byte(utils.WsOkResponse)
}
func (h *socketEventHandler) handleRequestConfig(conn etp.Conn, data []byte) []byte {
panic("not implemented")
}