Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DNSDiscoveryOptions ¶
DNSDiscoveryOptions are settings used for enabling DNS-based discovery protocol that stores merkle trees in DNS records which contain connection information for nodes. It's very useful for bootstrapping a p2p network.
type DiscV5Options ¶
type FilterOptions ¶
type LightpushOptions ¶
type LightpushOptions struct { Enable bool Nodes cli.StringSlice }
LightpushOptions are settings used to enable the lightpush protocol. This is a lightweight protocol used to avoid having to run the relay protocol which is more resource intensive. With this protocol a message is pushed to a peer that supports both the lightpush protocol and relay protocol. That peer will broadcast the message and return a confirmation that the message was broadcasted
type MetricsOptions ¶
MetricsOptions are settings used to start a prometheus server for obtaining useful node metrics to monitor the health of behavior of the go-waku node.
type Options ¶
type Options struct { Port int Address string Dns4DomainName string NodeKey string KeyFile string GenerateKey bool Overwrite bool StaticNodes cli.StringSlice KeepAlive int UseDB bool DBPath string AdvertiseAddress string ShowAddresses bool LogLevel string Websocket WSOptions Relay RelayOptions Store StoreOptions Swap SwapOptions Filter FilterOptions LightPush LightpushOptions DiscV5 DiscV5Options Rendezvous RendezvousOptions RendezvousServer RendezvousServerOptions DNSDiscovery DNSDiscoveryOptions Metrics MetricsOptions RPCServer RPCServerOptions }
Options contains all the available features and settings that can be configured via flags when executing go-waku as a service.
type RPCServerOptions ¶
RPCServerOptions are settings used to start a json rpc server
type RelayOptions ¶
type RendezvousOptions ¶
type RendezvousOptions struct { Enable bool Nodes cli.StringSlice }
type RendezvousServerOptions ¶
type StoreOptions ¶
type StoreOptions struct { Enable bool ShouldResume bool RetentionMaxDays int RetentionMaxMessages int Nodes cli.StringSlice }
StoreOptions are settings used for enabling the store protocol, used to retrieve message history from other nodes as well as acting as a store node and provide message history to nodes that ask for it.
func (*StoreOptions) RetentionMaxDaysDuration ¶
func (s *StoreOptions) RetentionMaxDaysDuration() time.Duration
type SwapOptions ¶
SwapOptions are settings used for configuring the swap protocol