Documentation ¶
Overview ¶
Package http implements the Network interface for the tlock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotUnchained = errors.New("not an unchained network")
ErrNotUnchained represents an error when the informed chain belongs to a chained network.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
Network represents the network support using the drand http client.
func NewNetwork ¶
NewNetwork constructs a network for use that will use the http client.
func (*Network) RoundNumber ¶
RoundNumber will return the latest round of randomness that is available for the specified time. To handle a duration construct time like this: time.Now().Add(6*time.Second)
Click to show internal directories.
Click to hide internal directories.