Documentation ¶
Index ¶
- Constants
- func MakeAddrsFactory(announceAddrs []multiaddr.Multiaddr) (basichost.AddrsFactory, error)
- func NewDealProvider(ctx context.Context, db *harmonydb.DB, cfg *config.CurioConfig, ...)
- func Router(mux *chi.Mux, rp *Redirector)
- func SafeHandle(h network.StreamHandler) network.StreamHandler
- type DealProvider
- type PublicAddrs
- type Redirector
Constants ¶
View Source
const DealProtocolv120ID = "/fil/storage/mk/1.2.0"
View Source
const DealProtocolv121ID = "/fil/storage/mk/1.2.1"
View Source
const DealStatusV12ProtocolID = "/fil/storage/status/1.2.0"
View Source
const TransportsProtocolID = "/fil/retrieval/transports/1.0.0"
Variables ¶
This section is empty.
Functions ¶
func MakeAddrsFactory ¶
func MakeAddrsFactory(announceAddrs []multiaddr.Multiaddr) (basichost.AddrsFactory, error)
func NewDealProvider ¶
func Router ¶
func Router(mux *chi.Mux, rp *Redirector)
Router sets up the route for the WebSocket connection
func SafeHandle ¶
func SafeHandle(h network.StreamHandler) network.StreamHandler
Types ¶
type DealProvider ¶
type DealProvider struct { PublicAddrs *PublicAddrs // contains filtered or unexported fields }
DealProvider listens for incoming deal proposals over libp2p
type PublicAddrs ¶
type PublicAddrs struct { Libp2pAddr multiaddr.Multiaddr HttpAddr multiaddr.Multiaddr }
func NewLibp2pHost ¶
type Redirector ¶
type Redirector struct {
// contains filtered or unexported fields
}
Redirector struct with a database connection
func NewRedirector ¶
func NewRedirector(db *harmonydb.DB) *Redirector
NewRedirector creates a new Redirector with a database connection
Click to show internal directories.
Click to hide internal directories.