Documentation ¶
Index ¶
Constants ¶
View Source
const Key = `` /* 2428-byte string literal not displayed */
Key is the PGP key used to sign the responses
View Source
const (
//VERSION is using semantic versioning
VERSION = "1.0.0"
)
Variables ¶
View Source
var ( //Client is the HTTP client used to fetch the datetime Client http.Client //Endpoint is queried for the current timestamp Endpoint = "https://api.syrinsecurity.net/v1/common/cryptotime/" //UserAgent is used in the request to the API UserAgent = "CryptoTime lib (https://github.com/syrinsecurity/cryptotime, v" + VERSION + ", " + runtime.GOOS + " " + runtime.GOARCH + ", " + runtime.Version() + ")" //ErrStatusCodeNotOk is returned when the API returns a statuscode that was not expected ErrStatusCodeNotOk = errors.New("cryptotime: status code not ok") )
View Source
var ( //DefaultTime is used as a fallback if the time can not be obtained from the server DefaultTime time.Time = time.Unix(500, 500) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.