Documentation
¶
Index ¶
- func AddUploadHandlerForLibp2p(ctx context.Context, libp2phost host.Host, store stores.Store, ...)
- func AddUploadHandlerForWebsockets(store stores.Store, canUploadDag CanUploadDagFunc, ...) func(*websocket.Conn)
- func BuildUploadStreamHandler(store stores.Store, ...) utils.UploadDagHandler
- type CanUploadDagFunc
- type HandleUploadedDagFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUploadHandlerForLibp2p ¶
func AddUploadHandlerForLibp2p(ctx context.Context, libp2phost host.Host, store stores.Store, canUploadDag CanUploadDagFunc, handleRecievedDag HandleUploadedDagFunc)
func AddUploadHandlerForWebsockets ¶
func AddUploadHandlerForWebsockets(store stores.Store, canUploadDag CanUploadDagFunc, handleRecievedDag HandleUploadedDagFunc) func(*websocket.Conn)
func BuildUploadStreamHandler ¶
func BuildUploadStreamHandler(store stores.Store, canUploadDag func(rootLeaf *merkle_dag.DagLeaf, pubKey *string, signature *string) bool, handleRecievedDag func(dag *merkle_dag.Dag, pubKey *string)) utils.UploadDagHandler
Types ¶
type CanUploadDagFunc ¶
type CanUploadDagFunc func(rootLeaf *merkle_dag.DagLeaf, pubKey *string, signature *string) bool
type HandleUploadedDagFunc ¶
type HandleUploadedDagFunc func(dag *merkle_dag.Dag, pubKey *string)
Click to show internal directories.
Click to hide internal directories.