Documentation ¶
Overview ¶
Package core maintains common configuration values used in the network it also encodes and decodes internal and external messages and queries
Index ¶
Constants ¶
View Source
const (
// DefaultEventChannelSize ...
DefaultEventChannelSize = 64
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { sync.Once Initialized bool LogOutput io.Writer Logger *log.Logger ShutdownCh chan struct{} DevelopmentMode bool NodeName string ExternalEventCh chan Event InrernalEventCh chan Event // contains filtered or unexported fields }
Config ...
func (*Config) AgentHelloEvent ¶
func (c *Config) AgentHelloEvent(address string) (*sentry.SignedMessage, error)
AgentHelloEvent ...
type GossipEvent ¶
type GossipEvent struct { LTime lamportclock.LamportTime Name string Payload []byte }
GossipEvent ...
Click to show internal directories.
Click to hide internal directories.