domain

package
v0.0.0-...-7c9107b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseCheck = checkType(0)
	StatusCheck   = checkType(1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	gorm.Model
	Name           string     `json:"name" binding:"required"`
	URL            string     `json:"url"`
	Method         string     `json:"method"`
	Body           string     `json:"body"`
	Status         string     `json:"status"`
	CronExpression string     `json:"cronExpression"`
	LastUpDate     *time.Time `json:"lastUpDate"`
	Headers        []Header   `json:"headers"`
	JobStatus      bool       `json:"jobStatus"`
}

App is the app model

type AppStatus

type AppStatus struct {
	Status bool `json:"status"`
}

AppStatus is the app status model

type Header struct {
	gorm.Model
	AppID uint   `json:"app_id"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

Header is the header model

type History

type History struct {
	AppID  uint      `json:"app_id"`
	Status string    `json:"status"`
	Date   time.Time `json:"date"`
	App    App
}

History is the history model

Jump to

Keyboard shortcuts

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