plgdtime

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ResourceType = "x.plgd.dev.time"
	ResourceURI  = "/x.plgd.dev/time"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PlgdTime

type PlgdTime struct {
	Interfaces     []string `json:"if,omitempty"`
	ResourceTypes  []string `json:"rt,omitempty"`
	Time           string   `json:"time"`                     // time in RFC3339Nano format
	LastSyncedTime string   `json:"lastSyncedTime,omitempty"` // time in RFC3339Nano format
	Status         Status   `json:"status,omitempty"`         // status of the time synchronization
}

func (PlgdTime) GetLastSyncedTime

func (t PlgdTime) GetLastSyncedTime() (time.Time, error)

func (PlgdTime) GetTime

func (t PlgdTime) GetTime() (time.Time, error)

type PlgdTimeUpdate

type PlgdTimeUpdate struct {
	Time string `json:"time"` // time in RFC3339Nano format
}

type Status

type Status string
const (
	StatusSyncing           Status = "syncing"
	StatusInSync            Status = "in-sync"
	StatusInSyncFromStorage Status = "in-sync-from-storage"
)

Jump to

Keyboard shortcuts

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