timemod

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(context.Context) common.Module

Types

type ClientResult

type ClientResult struct {
	Time   string `json:"time" description:"RFC 3339 local date-time with the client's numeric UTC offset, milliseconds"`
	UTC    string `json:"utc" description:"the same instant in UTC"`
	Offset int    `json:"offsetMinutes" description:"minutes the client is ahead of UTC; negative west of Greenwich"`
	Skew   int64  `` /* 156-byte string literal not displayed */
}

type NowResult

type NowResult struct {
	Time   string `json:"time" description:"RFC 3339 local date-time with numeric UTC offset, milliseconds, e.g. 2026-09-28T14:03:05.123+02:00"`
	UTC    string `json:"utc" description:"the same instant in UTC"`
	Zone   string `json:"zone" description:"the server's zone abbreviation (e.g. CET), else its offset"`
	Offset int    `json:"offsetMinutes" description:"minutes the local time is ahead of UTC; negative west of Greenwich"`
}

type TimerArg

type TimerArg struct {
	After   uint   `json:"afterMs" description:"fire this many milliseconds from now; mutually exclusive with at"`
	At      string `json:"at" description:"RFC 3339 instant to fire at, e.g. 2026-09-28T16:00:00+02:00; mutually exclusive with afterMs"`
	Comment string `` /* 176-byte string literal not displayed */
}

type TimerResult

type TimerResult struct {
	Async bool   `` /* 243-byte string literal not displayed */
	Fires string `json:"firesAt" description:"server-clock instant the timer fires (or fired) at, RFC 3339 with milliseconds"`
	Fired string `json:"firedAt,omitempty" description:"when the wait completed inside the call: the actual server-clock instant it returned"`
}

Jump to

Keyboard shortcuts

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