Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DialTimeout is the max time duration to wait when dialing a peer. DialTimeout = time.Second * 10 PushTimeout = time.Second * 10 PullTimeout = time.Second * 10 )
View Source
var ( // MaxPullLimit is the maximum page size for pulling records. MaxPullLimit = 10000 // InitialPullInterval is the interval between automatic log pulls. InitialPullInterval = time.Second // PullInterval is the interval between automatic log pulls. PullInterval = time.Second * 10 )
Functions ¶
func NewNetwork ¶
func NewNetwork( ctx context.Context, h host.Host, bstore bs.Blockstore, ds format.DAGService, ls lstore.Logstore, conf Config, serverOptions []grpc.ServerOption, dialOptions []grpc.DialOption, ) (app.Net, error)
NewNetwork creates an instance of net from the given host and thread store.
Types ¶
type Handler ¶ added in v0.1.13
type Handler func(context.Context, *pb.PushRecordRequest)
Handler receives all pushed thread records.
type PubSub ¶ added in v0.1.13
PubSub manages thread pubsub topics.
func (*PubSub) Add ¶ added in v0.1.13
Add a new thread topic. This may be called repeatedly for the same thread.
Click to show internal directories.
Click to hide internal directories.