Documentation ¶
Index ¶
- Variables
- func MerkleRoot(files []v1.File, md []v1.Metadata) (string, error)
- func SubsciptionReqAuth(cmd string) bool
- func ValidSubscription(cmd string) bool
- func WSJSON(cmd, id string, payload interface{}) ([][]byte, error)
- func WSRead(c *websocket.Conn) (string, string, interface{}, error)
- func WSWrite(c *websocket.Conn, cmd, id string, payload interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidWSCommand = errors.New("invalid webssocket command")
)
Functions ¶
func MerkleRoot ¶ added in v0.2.0
MerkleRoot converts the passed in list of files and metadata into SHA256 digests then calculates and returns the merkle root of the digests.
func SubsciptionReqAuth ¶
func ValidSubscription ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.