package clock
Import Path
github.com/gotd/td/clock (on go.dev)
Dependency Relation
imports 2 packages, and imported by 9 packages
Package-Level Type Names (total 6, in which 3 are exported)
Clock is current time source.
( Clock) Now() time.Time
( Clock) Ticker(d time.Duration) Ticker
( Clock) Timer(d time.Duration) Timer
*github.com/gotd/neo.Time
systemClock
Clock : github.com/cenkalti/backoff/v4.Clock
func github.com/gotd/td/internal/exchange.Exchanger.WithClock(c Clock) exchange.Exchanger
func github.com/gotd/td/internal/tdsync.(*LogGroup).SetClock(c Clock)
func github.com/gotd/td/tgerr.FloodWaitWithClock(c Clock) tgerr.FloodWaitOption
func github.com/gotd/td/internal/mtproxy/faketls.writeClientHello(w io.Writer, now Clock, sessionID [32]byte, domain string, secret []byte) (r [32]byte, err error)
func github.com/gotd/td/telegram.defaultBackoff(c Clock) func() backoff.BackOff
func github.com/gotd/td/telegram/internal/manager.defaultBackoff(c Clock) func(ctx context.Context) backoff.BackOff
func github.com/gotd/td/telegram/internal/manager.(*ConnOptions).setDefaults(connClock Clock)
var System
Ticker abstracts a channel that delivers “ticks” of a clock at intervals.
Timer abstracts a single event.
Package-Level Functions (only one, which is exported)
StopTimer stops timer and drains timer channel if Stop() returned false.
Package-Level Variables (only one, which is exported)
System Clock.
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |