Documentation ¶
Index ¶
Constants ¶
View Source
const KeyCachePrefix = "PUBKEYCACHE_"
Variables ¶
View Source
var ErrFetching = errors.New("retriever already fetching")
View Source
var ErrPinRequestEmpty = errors.New("pin request empty response")
View Source
var ErrPinRequestMismatch = errors.New("pin request content id mismatch")
View Source
var ErrTokenExpired = errors.New("token expired")
Functions ¶
Types ¶
type MessageRetriever ¶
type MessageRetriever struct { DoneChan chan struct{} // contains filtered or unexported fields }
func NewMessageRetriever ¶
func NewMessageRetriever(config MRConfig) *MessageRetriever
func (*MessageRetriever) FetchPointers ¶
func (m *MessageRetriever) FetchPointers() error
func (*MessageRetriever) IsFetching ¶
func (m *MessageRetriever) IsFetching() bool
func (*MessageRetriever) Run ¶
func (m *MessageRetriever) Run()
type NetworkService ¶
type NetworkService interface { HandleNewStream(s inet.Stream) HandlerForMsgType(t pb.Message_Type) func(peer.ID, *pb.Envelope, interface{}) (*pb.Envelope, error) SendRequest(ctx context.Context, p peer.ID, pmes *pb.Envelope) (*pb.Envelope, error) SendMessage(ctx context.Context, p peer.ID, pmes *pb.Envelope) error DisconnectFromPeer(p peer.ID) error }
type Pinner ¶
type Pinner struct {
// contains filtered or unexported fields
}
func NewPinner ¶
func NewPinner(config *PinnerConfig) *Pinner
type PinnerConfig ¶
type PointerRepublisher ¶
type PointerRepublisher struct {
// contains filtered or unexported fields
}
func NewPointerRepublisher ¶
func NewPointerRepublisher(node *core.IpfsNode, datastore repo.Datastore) *PointerRepublisher
func (*PointerRepublisher) Republish ¶
func (r *PointerRepublisher) Republish()
func (*PointerRepublisher) Run ¶
func (r *PointerRepublisher) Run()
Click to show internal directories.
Click to hide internal directories.