Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck struct {
At time.Time `json:"at"`
URL string `json:"url"`
Every time.Duration `json:"every"`
DNS time.Duration `json:"dns"`
Handshake time.Duration `json:"handshake"`
Connect time.Duration `json:"connect"`
TotalResponse time.Duration `json:"total"`
ServerResponse time.Duration `json:"server"`
Status int `json:"status"`
}
type Service ¶
type Service struct {
ID string `json:"id" storm:"id"`
Name string `json:"name"`
Description string `json:"description"`
HealthCheck HealthCheck `json:"healthcheck"`
UserID string `json:"user_id"`
Count int `json:"count"`
}
func NewService ¶
func (*Service) Fetch ¶
func (s *Service) Fetch() (*TimedResponse, error)
type TimedResponse ¶
type User ¶
type User struct {
ID string `storm:"id" json:"id"`
Email string `storm:"unique" json:"email"`
Password []byte `json:"password"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastLogin time.Time `json:"last_login"`
}
func (User) CheckPassword ¶
CheckPassword is a simple utility function to check the password given as raw against the user's hashed password
Click to show internal directories.
Click to hide internal directories.