Versions in this module Expand all Collapse all v0 v0.0.2 May 23, 2022 v0.0.1 May 4, 2019 Changes in this version + const Subprotocol + const Version + var DefaultDialer = &websocket.Dialer + type Client struct + Dialer *websocket.Dialer + HTTPClient *http.Client + func (c *Client) Get(ctx context.Context, uri string) (Result, error) + func (c *Client) GetMulti(ctx context.Context, uri string, samples int) (Result, error) + type LeapSecond struct + At time.Time + Leap int + Step int + type LeapSecondsList struct + ExpireAt time.Time + LeapSeconds []LeapSecond + UpdateAt time.Time + func ParseLeapSecondsList(r io.Reader) (*LeapSecondsList, error) + type Response struct + ID string + InitiateTime Timestamp + Leap int + Next Timestamp + SendTime Timestamp + Step int + Time Timestamp + type Result struct + Delay time.Duration + NextLeap time.Time + Offset time.Duration + Step int + TAIOffset time.Duration + type Server struct + LeapSecondsPath string + LeapSecondsURL string + Upgrader *websocket.Upgrader + func (s *Server) Close() error + func (s *Server) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (s *Server) Start() error + type Timestamp time.Time + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error)