Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFile = "config.json"
ConfigFile is the name of the config file.
View Source
const DotDir = ".multiverse"
DotDir is the dot directory for the remote.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Author contains published repositories. Author *object.Author `json:"author"` // HttpAddress is the http listener address. HttpAddress string `json:"http_address"` // ListenAddresses contains libp2p listener addresses. ListenAddresses []string `json:"listen_addresses"` // PrivateKey is the private key of the remote. PrivateKey string `json:"private_key"` // contains filtered or unexported fields }
Config contains repository info.
type Server ¶
type Server struct { // Config contains server settings. Config *Config // Peer manages peer services. Peer *p2p.Peer // Namesys resolves named resources. Namesys *name.System // Resolover is an ipfs path resolver. Resolver *resolver.Resolver // Root is the server root path. Root string }
Server implements the remote server.
Click to show internal directories.
Click to hide internal directories.