api

package
v0.0.0-...-65fe9d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 AddQuery

func AddQuery(c *gin.Context, keys []string, vals []string)

AddQuery ... AddQuery(c, []string{"key2"}, []string{"val2"}) -> key1=val1&key2=val2

func CreateAPI

func CreateAPI(c *gin.Context)

CreateAPI ...

func CreateClass

func CreateClass(c *gin.Context)

CreateClass ...

func CreateInfo

func CreateInfo(c *gin.Context)

CreateInfo ...

func CreateJSON

func CreateJSON(c *gin.Context)

CreateJSON ...

func CreateServer

func CreateServer(c *gin.Context)

CreateServer ...

func DelAPI

func DelAPI(c *gin.Context)

DelAPI ...

func DelClass

func DelClass(c *gin.Context)

DelClass ...

func DelInfo

func DelInfo(c *gin.Context)

DelInfo ...

func DelJSON

func DelJSON(c *gin.Context)

DelJSON ...

func DelServer

func DelServer(c *gin.Context)

DelServer ...

func MakeUpdateQuery

func MakeUpdateQuery(table string, keys []string, vals []interface{}, where string) string

MakeUpdateQuery ... make update query

func OpenDB

func OpenDB() *sql.DB

OpenDB ...

func ReadAPI

func ReadAPI(c *gin.Context)

ReadAPI ...

func ReadClass

func ReadClass(c *gin.Context)

ReadClass ...

func ReadInfo

func ReadInfo(c *gin.Context)

ReadInfo ...

func ReadJSON

func ReadJSON(c *gin.Context)

ReadJSON ...

func ReadServer

func ReadServer(c *gin.Context)

ReadServer ...

func ReturnError

func ReturnError(c *gin.Context, err error)

ReturnError ... error message

func UpdateAPI

func UpdateAPI(c *gin.Context)

UpdateAPI ...

func UpdateClass

func UpdateClass(c *gin.Context)

UpdateClass ...

func UpdateInfo

func UpdateInfo(c *gin.Context)

UpdateInfo ...

func UpdateJSON

func UpdateJSON(c *gin.Context)

UpdateJSON ...

func UpdateServer

func UpdateServer(c *gin.Context)

UpdateServer ...

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 구조

type ObjServer

type ObjServer struct {
	Key  int    `json:"key"`         // key
	Name string `json:"name"`        // name
	URL  string `json:"url"`         // url
	Desc string `json:"description"` // desc
}

ObjServer ... server 구조

type ObjVar

type ObjVar struct {
	Key         int    `json:"key"`          // key
	Name        string `json:"name"`         // name
	TypeKey     int    `json:"type_key"`     // type_key
	SubTypeKey  int    `json:"sub_type_key"` // sub_type_key
	Description string `json:"description"`  // description
}

ObjVar ... var 구조

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL