package
Version:
v0.0.16
Opens a new window with list of versions in this module.
Published: Jun 29, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateSite struct {
Domain string `json:"domain"`
Public *bool `json:"public,omitempty"`
Description *string `json:"desc,omitempty"`
}
type List[T any] struct {
Elapsed time.Duration `json:"elapsed"`
Items []T `json:"items"`
}
type Metrics struct {
Visitors uint64 `json:"visitors,omitempty"`
Views uint64 `json:"views,omitempty"`
Events uint64 `json:"events,omitempty"`
Visits uint64 `json:"visits,omitempty"`
}
type One[T any] struct {
Elapsed time.Duration `json:"elapsed"`
Item T `json:"item"`
}
type Site_ struct {
Domain string `json:"domain"`
Public bool `json:"public,omitempty"`
Description string `json:"desc,omitempty"`
Owner string `json:"owner"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type UpdateSite struct {
Public *bool `json:"public,omitempty"`
Description *string `json:"desc,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.