# abstractions ```go import "github.com/Akilan1999/p2p-rendering-computation/abstractions" ``` ## Index - [func GetSpecs\(IP string\) \(specs \*server.SysInfo, err error\)](<#GetSpecs>) - [func Init\(customConfig interface\{\}\) \(config \*Config.Config, err error\)](<#Init>) - [func MapPort\(port string, domainName string, serverAddress string\) \(entireAddress string, mapPort string, err error\)](<#MapPort>) - [func RemoveContainer\(IP string, ID string\) error](<#RemoveContainer>) - [func Start\(\) \(\*gin.Engine, error\)](<#Start>) - [func StartContainer\(IP string\) \(container \*docker.DockerVM, err error\)](<#StartContainer>) - [func UpdateIPTable\(\) \(err error\)](<#UpdateIPTable>) - [func ViewIPTable\(\) \(table \*p2p.IpAddresses, err error\)](<#ViewIPTable>) ## func [GetSpecs]() ```go func GetSpecs(IP string) (specs *server.SysInfo, err error) ``` GetSpecs Get spec information about the remote server ## func [Init]() ```go func Init(customConfig interface{}) (config *Config.Config, err error) ``` Init Initialises p2prc ## func [MapPort]() ```go func MapPort(port string, domainName string, serverAddress string) (entireAddress string, mapPort string, err error) ``` MapPort Creates a reverse proxy connection and maps the appropriate port ## func [RemoveContainer]() ```go func RemoveContainer(IP string, ID string) error ``` RemoveContainer Removes docker container based on the IP address and ID provided ## func [Start]() ```go func Start() (*gin.Engine, error) ``` Start p2prc in a server mode ## func [StartContainer]() ```go func StartContainer(IP string) (container *docker.DockerVM, err error) ``` StartContainer Starts docker container on the remote machine ## func [UpdateIPTable]() ```go func UpdateIPTable() (err error) ``` UpdateIPTable Force updates IP tables based on new new nodes discovered in the network ## func [ViewIPTable]() ```go func ViewIPTable() (table *p2p.IpAddresses, err error) ``` ViewIPTable View information of nodes in the network Generated by [gomarkdoc]()