Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(peerFn func(clientPeerId string, bloxSeed string) (string, error), ip string, port string, connectedCh chan bool) io.Closer
This function accepts an ip and port that it runs the webserver on. Default is 10.42.0.1:3500 and if it fails reverts to 0.0.0.0:3500 - /wifi/list endpoint: shows the list of available wifis
Types ¶
type Config ¶ added in v1.54.11
type Config struct { Identity string `yaml:"identity"` StoreDir string `yaml:"storeDir"` PoolName string `yaml:"poolName"` LogLevel string `yaml:"logLevel"` ListenAddrs []string `yaml:"listenAddrs"` Authorizer string `yaml:"authorizer"` AuthorizedPeers []string `yaml:"authorizedPeers"` IpfsBootstrapNodes []string `yaml:"ipfsBootstrapNodes"` StaticRelays []string `yaml:"staticRelays"` ForceReachabilityPrivate bool `yaml:"forceReachabilityPrivate"` AllowTransientConnection bool `yaml:"allowTransientConnection"` DisableResourceManager bool `yaml:"disableResourceManager"` MaxCIDPushRate int `yaml:"maxCIDPushRate"` IpniPublishDisabled bool `yaml:"ipniPublishDisabled"` IpniPublishInterval string `yaml:"ipniPublishInterval"` IpniPublishDirectAnnounce []string `yaml:"IpniPublishDirectAnnounce"` IpniPublisherIdentity string `yaml:"ipniPublisherIdentity"` }
Click to show internal directories.
Click to hide internal directories.