timedate

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireTimeDate

func AcquireTimeDate(ctx context.Context, w http.ResponseWriter) error

func RegisterRouterTimeDate

func RegisterRouterTimeDate(router *mux.Router)

Types

type Describe

type Describe struct {
	Timezone        string `json:"Timezone"`
	LocalRTC        bool   `json:"LocalRTC"`
	CanNTP          bool   `json:"CanNTP"`
	NTP             string `json:"NTP"`
	NTPSynchronized bool   `json:"NTPSynchronized"`
	TimeUSec        uint64 `json:"TimeUSec"`
	RTCTimeUSec     uint64 `json:"RTCTimeUSec"`
}

func DBusAcquireTimeDate

func DBusAcquireTimeDate() (*Describe, error)

type SDConnection

type SDConnection struct {
	// contains filtered or unexported fields
}

func NewSDConnection

func NewSDConnection() (*SDConnection, error)

func (*SDConnection) Close

func (c *SDConnection) Close()

func (*SDConnection) DBusAcquire

func (c *SDConnection) DBusAcquire(property string) (dbus.Variant, error)

type TimeDate

type TimeDate struct {
	Method string `json:"Method"`
	Value  string `json:"Value"`
}

func (*TimeDate) ConfigureTimeDate

func (t *TimeDate) ConfigureTimeDate(w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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