Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { ServerPort string `yaml:"port"` Number string `yaml:"number"` Rho float64 `yaml:"rho"` Q int `yaml:"q"` Round int `yaml:"round"` Ant int `yaml:"ant"` UpdateRound int `yaml:"update_round"` Alpha float64 `yaml:"alpha"` Gamma float64 `yaml:"gamma"` //todo data size ask neighbor for delay PathThreshold int `yaml:"path_threshold"` GetNeighborDelayRound int `yaml:"get_neighbor_delay_round"` DataSize int `yaml:"data_size"` RequestRelativePath string `yaml:"request_relative_path"` UpdateDelayRelativePath string `yaml:"update_delay_relative_path"` ResponseRelativePath string `yaml:"response_relative_path"` UpdateRelativePath string `yaml:"update_relative_path"` UpdateDataPath string `yaml:"update_data_path"` NeighborList map[string]Neighbor `yaml:"neighbor"` UpdateList []UpdateInfo PathLog map[string]int PathTotalDelay map[string]float64 sync.RWMutex }
func (*Conf) GetConfOrDie ¶
GetConfOrDie Loading config from local file
type UpdateInfo ¶
Click to show internal directories.
Click to hide internal directories.