Documentation ¶
Index ¶
- Variables
- type Bookmark
- type BookmarkAddRequest
- type Bookmarks
- type BookmarksImpl
- type BuildInfo
- type CPUStats
- type DiskStats
- type Health
- type HealthImpl
- type HealthStats
- type LoadStats
- type ObjectID
- type RAMStats
- type SwapStats
- type System
- type SystemImpl
- func (s *SystemImpl) All() (*SystemStats, error)
- func (s *SystemImpl) CPU() (*CPUStats, error)
- func (s *SystemImpl) Disk() (*DiskStats, error)
- func (s *SystemImpl) Load() (*LoadStats, error)
- func (s *SystemImpl) RAM() (*RAMStats, error)
- func (s *SystemImpl) Swap() (*SwapStats, error)
- func (s *SystemImpl) Uptime() (*UptimeStats, error)
- type SystemStats
- type UptimeStats
Constants ¶
This section is empty.
Variables ¶
View Source
var NilObjectID = primitive.NilObjectID
Functions ¶
This section is empty.
Types ¶
type BookmarkAddRequest ¶
type BookmarksImpl ¶
type BookmarksImpl struct {
// contains filtered or unexported fields
}
func NewBookmarks ¶
func NewBookmarks(log logger.Logger, client *mongo.Client) *BookmarksImpl
func (*BookmarksImpl) Add ¶
func (b *BookmarksImpl) Add(request BookmarkAddRequest) (*Bookmark, error)
func (*BookmarksImpl) Bookmarks ¶
func (b *BookmarksImpl) Bookmarks() ([]Bookmark, error)
func (*BookmarksImpl) Delete ¶
func (b *BookmarksImpl) Delete(id ObjectID) error
func (*BookmarksImpl) Update ¶
func (b *BookmarksImpl) Update(bookmark Bookmark) error
type Health ¶
type Health interface {
Health() (*HealthStats, error)
}
type HealthImpl ¶
type HealthImpl struct {
// contains filtered or unexported fields
}
func NewHealth ¶
func NewHealth() (*HealthImpl, error)
func (*HealthImpl) Health ¶
func (h *HealthImpl) Health() (*HealthStats, error)
type HealthStats ¶
type SystemImpl ¶
type SystemImpl struct {
// contains filtered or unexported fields
}
func NewSystem ¶
func NewSystem(cfg config.Config) *SystemImpl
func (*SystemImpl) All ¶
func (s *SystemImpl) All() (*SystemStats, error)
func (*SystemImpl) CPU ¶
func (s *SystemImpl) CPU() (*CPUStats, error)
func (*SystemImpl) Disk ¶
func (s *SystemImpl) Disk() (*DiskStats, error)
func (*SystemImpl) Load ¶
func (s *SystemImpl) Load() (*LoadStats, error)
func (*SystemImpl) RAM ¶
func (s *SystemImpl) RAM() (*RAMStats, error)
func (*SystemImpl) Swap ¶
func (s *SystemImpl) Swap() (*SwapStats, error)
func (*SystemImpl) Uptime ¶
func (s *SystemImpl) Uptime() (*UptimeStats, error)
type SystemStats ¶
type UptimeStats ¶
Click to show internal directories.
Click to hide internal directories.