Documentation ¶
Index ¶
- Constants
- func GetFullScreenshotImage(c *gin.Context)
- func GetHistoryImage(c *gin.Context)
- func Init()
- func InternalErrorResponse(c *gin.Context, err error)
- func JSONResponse(c *gin.Context, code int, detail string, data interface{})
- func NotificationAddServerChan(c *gin.Context)
- func NotificationList(c *gin.Context)
- func SentryCreate(c *gin.Context)
- func SentryInfo(c *gin.Context)
- func SentryList(c *gin.Context)
- func SentryRemove(c *gin.Context)
- func SentryRequestFullScreenshot(c *gin.Context)
- func SentryUpdate(c *gin.Context)
- func SentryWaitFullScreenshot(c *gin.Context)
- func UserCreateWithVerification(c *gin.Context)
- func UserGetSignUpVerification(c *gin.Context)
- func UserInfo(c *gin.Context)
- func UserLogin(c *gin.Context)
- func UserUpdateSettings(c *gin.Context)
- func WorkerFetchTask(c *gin.Context)
- func WorkerInit(c *gin.Context)
- func WorkerSubmitTask(c *gin.Context)
- type NotificationListItemJSON
- type NotificationMethodJson
- type SentryImageJson
- type SentryJSON
- type SentryListItemJSON
- type UserInfoJSON
Constants ¶
View Source
const ( CodeOK = 0 CodeAuthError = -1 CodeWrongParam = -2 CodeExceededLimits = -4 CodeNotExist = -5 CodeAlreadyExist = -6 CodeAreaTooLarge = -1001 )
Variables ¶
This section is empty.
Functions ¶
func GetFullScreenshotImage ¶
func GetHistoryImage ¶
func InternalErrorResponse ¶
func NotificationList ¶
func SentryInfo ¶
func SentryList ¶
func SentryRemove ¶
func SentryRequestFullScreenshot ¶
url the url of the page that needs screenshot
func SentryUpdate ¶
func UserCreateWithVerification ¶
UserCreateWithVerification checks verification code and create the user in the user database
func UserGetSignUpVerification ¶
UserGetSignUpVerification gets user email, generate Verification code and wait to be validated
func UserUpdateSettings ¶
func WorkerFetchTask ¶
func WorkerInit ¶
func WorkerSubmitTask ¶
Types ¶
type NotificationMethodJson ¶
type SentryImageJson ¶
type SentryJSON ¶
type SentryJSON struct { ID string `json:"id"` Name string `json:"name"` RunningState int `json:"runningState"` Notification NotificationMethodJson `json:"notification"` LastCheckTime *time.Time `json:"lastCheckTime"` Interval int `json:"interval"` CheckCount int `json:"checkCount"` NotifyCount int `json:"notifyCount"` ImageHistory []SentryImageJson `json:"imageHistory"` Task map[string]interface{} `json:"task"` CreatedAt time.Time `json:"createdAt"` }
type SentryListItemJSON ¶
Click to show internal directories.
Click to hide internal directories.