Documentation
¶
Index ¶
- Constants
- func AddQuery(c *gin.Context, keys []string, vals []string)
- func CreateAPI(c *gin.Context)
- func CreateClass(c *gin.Context)
- func CreateInfo(c *gin.Context)
- func CreateJSON(c *gin.Context)
- func CreateServer(c *gin.Context)
- func DelAPI(c *gin.Context)
- func DelClass(c *gin.Context)
- func DelInfo(c *gin.Context)
- func DelJSON(c *gin.Context)
- func DelServer(c *gin.Context)
- func MakeUpdateQuery(table string, keys []string, vals []interface{}, where string) string
- func OpenDB() *sql.DB
- func ReadAPI(c *gin.Context)
- func ReadClass(c *gin.Context)
- func ReadInfo(c *gin.Context)
- func ReadJSON(c *gin.Context)
- func ReadServer(c *gin.Context)
- func ReturnError(c *gin.Context, err error)
- func UpdateAPI(c *gin.Context)
- func UpdateClass(c *gin.Context)
- func UpdateInfo(c *gin.Context)
- func UpdateJSON(c *gin.Context)
- func UpdateServer(c *gin.Context)
- type ObjAPI
- type ObjClass
- type ObjInfo
- type ObjJSON
- type ObjServer
- type ObjVar
Constants ¶
View Source
const DbName = `sqlite-apiclass.db`
DbName ...
View Source
const DriverName = `sqlite3`
DriverName ...
View Source
const QueryCreateName = `JsonToClass.sql`
QueryCreateName ...
View Source
const ServerName = `localhost`
ServerName ...
View Source
const ServerPort = `8000`
ServerPort ...
Variables ¶
This section is empty.
Functions ¶
func MakeUpdateQuery ¶
MakeUpdateQuery ... make update query
Types ¶
type ObjAPI ¶
type ObjAPI struct { Key int `json:"key"` // key ServerKey int `json:"server_key"` // server_key Name string `json:"name"` // name URL string `json:"url"` // url Description string `json:"description"` // description }
ObjAPI ... api 구조
type ObjClass ¶
type ObjClass struct { Key int `json:"key"` // key APIKey int `json:"api_key"` // api_key Name string `json:"name"` // name Description string `json:"description"` // description }
ObjClass ... class 구조
type ObjInfo ¶
type ObjInfo struct { Key int `json:"key"` // key ServerKey int `json:"server_key"` // server_key Prefix string `json:"prefix"` // prefix }
ObjInfo ... info 구조
type ObjJSON ¶
type ObjJSON struct { Key int `json:"key"` // key APIKey int `json:"api_key"` // api_key Successed bool `json:"successed"` // 성공여부 ParamData string `json:"param_data"` // 요청 파라미터 정보 Data string `json:"data"` // 응답 데이터 Description string `json:"description"` // description CreatedDate string `json:"created_date"` // created_date }
ObjJSON ... josn 구조
Click to show internal directories.
Click to hide internal directories.