models

package
v0.0.0-...-ab4e8db Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertUploadForm

type CertUploadForm struct {
	ID       *int                  `form:"id"`
	Name     string                `form:"name" binding:"required"`
	P12      *multipart.FileHeader `form:"file" binding:"required"`
	Password string                `form:"password" binding:"required"`
}

type ClientCert

type ClientCert struct {
	ID       int    `json:"id" gorm:"type:int"`
	Name     string `json:"name"`
	P12      []byte `json:"-" gorm:"serializer:json"`
	Password string `json:"password"`
}

type Systemstatus

type Systemstatus struct {
	ID                 int       `json:"id" gorm:"primaryKey;autoIncrement:true"`
	Name               string    `json:"name"`
	CallStatus         string    `json:"callStatus"`
	CallUrl            string    `json:"callUrl"`
	CallBody           string    `json:"callBody"`
	HttpMethod         string    `json:"httpMethod"`
	CertStatus         string    `json:"certStatus"`
	CertExpirationDays int       `json:"certExpirationDays"`
	Message            string    `json:"message"`
	ResponseMatch      string    `json:"responseMatch"`
	AlertBody          string    `json:"alertBody"`
	AlertUrl           string    `json:"alertUrl"`
	AlertEmail         string    `json:"alertEmail"`
	AlertHasBeenSent   bool      `json:"alertHasBeenSent"`
	Status             string    `json:"status"`
	LastOKTime         time.Time `json:"lastOkTime"`
	LastFailTime       time.Time `json:"lastFailTime"`
	ClientCertID       *int      `json:"clientCertId" gorm:"foreignKey:ClientCertID"`
}

Jump to

Keyboard shortcuts

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