Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
ReadConfig Read config from file path specified in first argument and write values into target config
Types ¶
type Config ¶
type Config struct { BindAddr string `json:"port"` LogLevel string `json:"logLevel"` MySQL map[string]mysql.Config `json:"mysql"` Mongodb map[string]mongodb.Config `json:"mongodb"` }
Config - config for 'connector' server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server - connector server struct
func (*Server) CheckMethod ¶
func (*Server) NewResponseError ¶
func (s *Server) NewResponseError(w http.ResponseWriter, message, reason string, code int)
NewResponseError creates and sends to client custom response about error
Click to show internal directories.
Click to hide internal directories.