Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureCli ¶
func ConfigureCli(conf *Configuration) error
func CreateAckFrame ¶
func GetConfigurationForCluster ¶
func GetConfigurationForCluster() utils.Configuration
func OverwritePort ¶
func OverwritePort(port string)
warning: if calling SetConfFile after OverwritePort, the conf file wont be loaded
func SetConfFile ¶
func SetConfFile(confFilePath string)
Types ¶
type Cluster ¶
type Cluster struct { NodeId string CommManager *communication.CommunicationManager // contains filtered or unexported fields }
func (*Cluster) HandleEvent ¶
func (c *Cluster) HandleEvent(msg *tcp.MessageFromCluster)
func (*Cluster) StartListening ¶
func (c *Cluster) StartListening()
type ClusterConfiguration ¶
type ClusterConfiguration struct { LOG_LEVEL string LOG_TO string LOG_DIR string LOG_FILE_NAME string LOG_FILE_MAX_SIZE int LOG_FILE_MAX_NUM_BACKUPS int LOG_FILE_MAX_AGE int LOG_GOSSIP_PROTOCOL bool LOG_STORAGE bool NODE_IP string NODE_PORT string NODE_HEARTBIT_PORT string CLUSTER_NODE_IP string CLUSTER_NODE_PORT string CLUSTER_NODE_HEARTBIT_PORT string NUMB_VNODES int DATA_FOLDER string }
func GetClusterConfiguration ¶
func GetClusterConfiguration() *ClusterConfiguration
type Configuration ¶
type Configuration struct { CLI_IP string `yaml:"ip"` CLI_PORT string `yaml:"port"` CLUSTER_NODE_IP string `yaml:"clusterNodeIp"` CLUSTER_NODE_PORT string `yaml:"clusterNodePort"` }
func LoadConfiguration ¶
func LoadConfiguration(confFilePath string) (Configuration, error)
Click to show internal directories.
Click to hide internal directories.