Files
p2p-rendering-computation/abstractions/docs.md

3.0 KiB

abstractions

import "github.com/Akilan1999/p2p-rendering-computation/abstractions"

Index

func GetSpecs

func GetSpecs(IP string) (specs *server.SysInfo, err error)

GetSpecs Get spec information about the remote server

func Init

func Init(customConfig interface{}) (config *Config.Config, err error)

Init Initialises p2prc

func MapPort

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

func RemoveContainer(IP string, ID string) error

RemoveContainer Removes docker container based on the IP address and ID provided

func Start

func Start() (*gin.Engine, error)

Start p2prc in a server mode

func StartContainer

func StartContainer(IP string) (container *docker.DockerVM, err error)

StartContainer Starts docker container on the remote machine

func UpdateIPTable

func UpdateIPTable() (err error)

UpdateIPTable Force updates IP tables based on new new nodes discovered in the network

func ViewIPTable

func ViewIPTable() (table *p2p.IpAddresses, err error)

ViewIPTable View information of nodes in the network

Generated by gomarkdoc