package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Alert struct {
CreateTime time.Time `bson:"create_time"`
EndpointId string `bson:"endpoint_id"`
Errors int `json:"errors"`
}
type Endpoint struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
Username string `bson:"username"`
Url string `bson:"url"`
Threshold int `bson:"threshold"`
FailedTimes int `bson:"failedTimes"`
CreateTime time.Time `json:"create_time"`
}
type Request struct {
EndpointId string `bson:"endpoint_id"`
Code int `bson:"result"`
CreateTime time.Time `bson:"create_time"`
}
type User struct {
Username string `bson:"username"`
Password string `bson:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.