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)
/* sort exporteds by: alphabet | popularity */
type Clock (interface)
Clock is current time source.
Methods (total 3, all are exported )
( Clock) Now () time .Time
( Clock) Ticker (d time .Duration ) Ticker
( Clock) Timer (d time .Duration ) Timer
Implemented By (at least 2, in which 1 is exported )
*github.com/gotd/neo.Time
/* at least one unexported ... */ /* at least one unexported: */
systemClock
Implements (at least one exported )
Clock : github.com/cenkalti/backoff/v4.Clock
As Inputs Of (at least 8, in which 4 are exported )
func github.com/gotd/td/exchange.Exchanger .WithClock (c Clock ) exchange .Exchanger
func github.com/gotd/td/mtproto.NewServerTime (base Clock , offset time .Duration ) *mtproto .ServerTime
func github.com/gotd/td/tdsync.(*LogGroup ).SetClock (c Clock )
func github.com/gotd/td/tgerr.FloodWaitWithClock (c Clock ) tgerr .FloodWaitOption
/* 4+ unexporteds ... */ /* 4+ unexporteds: */
func github.com/gotd/td/mtproxy/faketls.writeClientHello (w io .Writer , rand io .Reader , now Clock , 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 )
As Types Of (only one, which is exported )
var System
Package-Level Functions (only one, which is exported)
Package-Level Variables (only one, which is exported)
The pages are generated with Golds v0.8.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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds .