Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Status int `json:"status"` Message string `json:"message"` Data interface{} `json:"data"` }
Message
type MysqlAPIServer ¶
type MysqlAPIServer struct {
// contains filtered or unexported fields
}
MysqlAPIServer is a http server could access mysql api
func NewMysqlAPIServer ¶
func NewMysqlAPIServer(dbURI string) *MysqlAPIServer
NewMysqlAPIServer create a new MysqlAPIServer instance
func (*MysqlAPIServer) Start ¶
func (server *MysqlAPIServer) Start(address string) *MysqlAPIServer
Start server
Click to show internal directories.
Click to hide internal directories.