Documentation
¶
Index ¶
- func DHTOrdered(a, b, c types.PublicKey) bool
- func DHTWrappedOrdered(a, b, c types.PublicKey) bool
- func ForwardOrdering(target types.PublicKey, input []types.PublicKey) func(i, j int) bool
- func LessThan(first, second types.PublicKey) bool
- func ReverseOrdering(target types.PublicKey, input []types.PublicKey) func(i, j int) bool
- func SignedTimestamp(private types.PrivateKey) ([]byte, error)
- func VerifySignedTimestamp(public types.PublicKey, payload []byte) bool
- type BufferedRWC
- type Dispatch
- type Overlay
- type WebSocketConn
- func (c *WebSocketConn) Close() error
- func (c *WebSocketConn) LocalAddr() net.Addr
- func (c *WebSocketConn) Read(p []byte) (int, error)
- func (c *WebSocketConn) RemoteAddr() net.Addr
- func (c *WebSocketConn) SetDeadline(t time.Time) error
- func (c *WebSocketConn) SetReadDeadline(t time.Time) error
- func (c *WebSocketConn) SetWriteDeadline(t time.Time) error
- func (c *WebSocketConn) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DHTOrdered ¶
DHTOrdered returns true if the order of A, B and C is correct, where A < B < C without wrapping.
func DHTWrappedOrdered ¶
DHTWrappedOrdered returns true if the ordering of A, B and C is correct, where we may wrap around from C to A. This gives us the property of the successor always being a+1 and the predecessor being a+sizeofkeyspace.
func ForwardOrdering ¶
func ReverseOrdering ¶
func SignedTimestamp ¶
func SignedTimestamp(private types.PrivateKey) ([]byte, error)
Types ¶
type BufferedRWC ¶
type BufferedRWC struct {
io.ReadWriteCloser
// contains filtered or unexported fields
}
func NewBufferedRWC ¶
func NewBufferedRWC(c io.ReadWriteCloser) BufferedRWC
func NewBufferedRWCSize ¶
func NewBufferedRWCSize(c io.ReadWriteCloser, n int) BufferedRWC
func (BufferedRWC) Flush ¶
func (b BufferedRWC) Flush() error
type WebSocketConn ¶
type WebSocketConn struct {
// contains filtered or unexported fields
}
func WrapWebSocketConn ¶
func WrapWebSocketConn(c *websocket.Conn) *WebSocketConn
func (*WebSocketConn) Close ¶
func (c *WebSocketConn) Close() error
func (*WebSocketConn) LocalAddr ¶
func (c *WebSocketConn) LocalAddr() net.Addr
func (*WebSocketConn) RemoteAddr ¶
func (c *WebSocketConn) RemoteAddr() net.Addr
func (*WebSocketConn) SetDeadline ¶
func (c *WebSocketConn) SetDeadline(t time.Time) error
func (*WebSocketConn) SetReadDeadline ¶
func (c *WebSocketConn) SetReadDeadline(t time.Time) error
func (*WebSocketConn) SetWriteDeadline ¶
func (c *WebSocketConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.