Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusNodeConfig ¶ added in v0.0.4
type ConsensusNodeConfig struct { GeneralNodeConfig `yaml:".,inline"` Mongo struct { Connect string `yaml:"connect"` Database string `yaml:"database"` LogCollection string `yaml:"logCollection"` } `yaml:"mongo"` }
type CoordinatorNodeConfig ¶
type CoordinatorNodeConfig struct { GeneralNodeConfig `yaml:".,inline"` Mongo struct { Connect string `yaml:"connect"` Database string `yaml:"database"` Log string `yaml:"log"` Spaces string `yaml:"spaces"` } `yaml:"mongo"` SpaceStatus struct { RunSeconds int `yaml:"runSeconds"` DeletionPeriodDays int `yaml:"deletionPeriodDays"` } `yaml:"spaceStatus"` DefaultLimits struct { SpaceMembersRead int `yaml:"spaceMembersRead"` SpaceMembersWrite int `yaml:"spaceMembersWrite"` SharedSpacesLimit int `yaml:"sharedSpacesLimit"` } `yaml:"defaultLimits"` }
type DefaultConfig ¶ added in v0.2.0
type DefaultConfig struct { ExternalAddr []string `yaml:"external-addresses"` AnySyncCoordinator struct { ListenAddr string `yaml:"listen"` YamuxPort int `yaml:"yamuxPort"` QuicPort int `yaml:"quicPort"` Mongo struct { Connect string `yaml:"connect"` Database string `yaml:"database"` } `yaml:"mongo"` DefaultLimits struct { SpaceMembersRead int `yaml:"spaceMembersRead"` SpaceMembersWrite int `yaml:"spaceMembersWrite"` SharedSpacesLimit int `yaml:"sharedSpacesLimit"` } `yaml:"defaultLimits"` } `yaml:"any-sync-coordinator"` AnySyncConsensusNode struct { ListenAddr string `yaml:"listen"` YamuxPort int `yaml:"yamuxPort"` QuicPort int `yaml:"quicPort"` Mongo struct { Connect string `yaml:"connect"` Database string `yaml:"database"` } `yaml:"mongo"` } `yaml:"any-sync-consensusnode"` AnySyncFilenode struct { ListenAddr string `yaml:"listen"` YamuxPort int `yaml:"yamuxPort"` QuicPort int `yaml:"quicPort"` S3Store struct { Endpoint string `yaml:"endpoint"` Bucket string `yaml:"bucket"` IndexBucket string `yaml:"indexBucket"` Region string `yaml:"region"` Profile string `yaml:"profile"` ForcePathStyle bool `yaml:"forcePathStyle"` } `yaml:"s3Store"` Redis struct { URL string `yaml:"url"` } `yaml:"redis"` DefaultLimit int `yaml:"defaultLimit"` } `yaml:"any-sync-filenode"` AnySyncNode struct { ListenAddr []string `yaml:"listen"` YamuxPort int `yaml:"yamuxPort"` QuicPort int `yaml:"quicPort"` } `yaml:"any-sync-node"` }
type FileNodeConfig ¶
type FileNodeConfig struct { GeneralNodeConfig `yaml:".,inline"` DefaultLimit int `yaml:"defaultLimit"` S3Store struct { Endpoint string `yaml:"endpoint,omitempty"` Bucket string `yaml:"bucket"` IndexBucket string `yaml:"indexBucket"` Region string `yaml:"region"` Profile string `yaml:"profile"` MaxThreads int `yaml:"maxThreads"` ForcePathStyle bool `yaml:"forcePathStyle"` } `yaml:"s3Store"` Redis struct { IsCluster bool `yaml:"isCluster"` URL string `yaml:"url"` } `yaml:"redis"` }
type GeneralNodeConfig ¶
type GeneralNodeConfig struct { Account accountservice.Config `yaml:"account"` Drpc struct { Stream struct { MaxMsgSizeMb int `yaml:"maxMsgSizeMb"` } `yaml:"stream"` } `yaml:"drpc"` Yamux struct { ListenAddrs []string `yaml:"listenAddrs"` WriteTimeoutSec int `yaml:"writeTimeoutSec"` DialTimeoutSec int `yaml:"dialTimeoutSec"` } `yaml:"yamux"` Quic struct { ListenAddrs []string `yaml:"listenAddrs"` WriteTimeoutSec int `yaml:"writeTimeoutSec"` DialTimeoutSec int `yaml:"dialTimeoutSec"` } `yaml:"quic"` Network Network `yaml:"network"` NetworkStorePath string `yaml:"networkStorePath"` Log struct { Production bool `yaml:"production"` DefaultLevel string `yaml:"defaultLevel"` NamedLevels struct { } `yaml:"namedLevels"` } `yaml:"log"` Metric struct { Addr string `yaml:"addr"` } `yaml:"metric"` }
type HeartConfig ¶
type Network ¶
type Network struct { ID string `yaml:"id"` HeartConfig `yaml:".,inline"` }
type SyncNodeConfig ¶
type SyncNodeConfig struct { GeneralNodeConfig `yaml:".,inline"` Space struct { GcTTL int `yaml:"gcTTL"` SyncPeriod int `yaml:"syncPeriod"` } `yaml:"space"` Storage struct { Path string `yaml:"path"` } `yaml:"storage"` NodeSync struct { SyncOnStart bool `yaml:"syncOnStart"` PeriodicSyncHours int `yaml:"periodicSyncHours"` } `yaml:"nodeSync"` ApiServer struct { ListenAddr string `yaml:"listenAddr"` } `yaml:"apiServer"` }
Click to show internal directories.
Click to hide internal directories.