Documentation
¶
Index ¶
- Constants
- type Pool
- func (p *Pool) AddEvent(ctx context.Context, data []byte, parents []string) error
- func (p *Pool) AddSubEvent(ctx context.Context, data []byte, parentEventID string, ...) error
- func (p *Pool) Close() error
- func (p *Pool) GetEvent(id string) (*dag.Event, error)
- func (p *Pool) GetEvents() []*dag.Event
- func (p *Pool) GetHost() host.Host
- func (p *Pool) GetPeers() map[peer.ID]time.Time
- func (p *Pool) VerifyEvent(eventID string) error
Constants ¶
View Source
const (
TopicName = "dag-time-pool"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages the temporary event pool
func (*Pool) AddSubEvent ¶
func (p *Pool) AddSubEvent(ctx context.Context, data []byte, parentEventID string, additionalParents []string) error
AddSubEvent adds a new sub-event to the pool with optional connections to other sub-events
func (*Pool) VerifyEvent ¶
VerifyEvent verifies an event and its chain of ancestors
Click to show internal directories.
Click to hide internal directories.