Versions in this module Expand all Collapse all v0 v0.3.0 Aug 10, 2020 Changes in this version + const LCAAPCmdStartProgram + const LCAPErrAllocFail + const LCAPErrDeadProgram + const LCAPErrUnrecognized + const LCASErrReadFail + const LCASErrWriteFail + var DefaultListenAddrs []multiaddr.Multiaddr + var LCAAllocatorProtocolID protocol.ID + var LCAAllocatorRendezvous string + var LCAManagerFindProtID protocol.ID + var LCAManagerRequestProtID protocol.ID + func NewLCAHandler(bootstraps []multiaddr.Multiaddr, sPsk string) func(network.Stream) + func RequestHandler(address string) func(network.Stream) + type LCAAllocator struct + Host p2pnode.Node + func NewLCAAllocator(ctx context.Context, cfg p2pnode.Config, sPsk string) (LCAAllocator, error) + type LCAManager struct + Host p2pnode.Node + P2PHash string + func NewLCAManager(ctx context.Context, cfg p2pnode.Config, serviceName string, ...) (LCAManager, error) + func (lca *LCAManager) AllocBetterService(serviceHash string, perf p2putil.PerfInd) (peer.ID, p2putil.PerfInd, error) + func (lca *LCAManager) AllocService(serviceHash string) (peer.ID, p2putil.PerfInd, error) + func (lca *LCAManager) FindService(serviceHash string) (peer.ID, p2putil.PerfInd, error) + func (lca *LCAManager) Request(pid peer.ID, req *http.Request) (*http.Response, error)