sqlite的api,便于内部使用
panlei
2019-08-22 b06daf8f2976e55475c6bd65aa45711c79446428
client.go
@@ -1,5 +1,7 @@
package dbapi
import "strconv"
type Client interface {
   //GET
   DoGetRequest(url string, params map[string]string, headers map[string]string) ([]byte, error)
@@ -22,5 +24,5 @@
//初始化dbserver的地址和端口
func Init(ip string,port int){
   BASIC_URL = "http://"+ ip + ":" + string(port)
   BASIC_URL = "http://"+ ip + ":" + strconv.Itoa(port)
}