Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { ID int64 `json:"id"` ParamName string APIId int64 RequestHeader string QueryStringParams string RequestBody string Extra string Assert string APIURL string `json:"url"` APIMethod string APIType string // default: "json" AccessEndpointIds string Description string ServerID int64 CreatedAt string UpdatedAt string Endpoint string // for ping api }
API model
func GetAllAPIsByJSON ¶
func GetAllAPIsByMySQL ¶
GetAllAPIsByDatabase get all apis by database.
func GetAllPingAPIsByCSV ¶
func GetAllPingAPIsByJSON ¶
func GetAllPingAPIsByMySQL ¶
type APIEndpoint ¶
type APIEndpoint struct { ID int64 Name string Type string Description string Endpoint string ServerID int64 CreatedAt string UpdatedAt string }
api endpoint model
func GetAllAPIEndpoints ¶
func GetAllAPIEndpoints() ([]APIEndpoint, error)
GetAllAPIEndpoints get all api endpoints, table name: prefix_api_endpoints
func GetAllAPIEndpointsByJSON ¶
func GetAllAPIEndpointsByJSON() ([]APIEndpoint, error)
func GetAllAPIEndpointsByMySQL ¶
func GetAllAPIEndpointsByMySQL() ([]APIEndpoint, error)
type Assert ¶
type Assert struct { Status []AssertItem `json:"status"` JSONPath []AssertItem `json:"jsonpath"` Cookie []AssertItem `json:"cookie"` Header []AssertItem `json:"header"` Body []AssertItem `json:"body"` }
assert model
type AssertItem ¶
type AssertItem struct { Type string `json:"type"` Key string `json:"key"` Value string `json:"value"` ValueType string `json:"value_type"` }
assert item model
type Notification ¶
notification model
Click to show internal directories.
Click to hide internal directories.