Documentation
¶
Overview ¶
Package rf pkg/services/rf/rf.go c2-vis-appsvc
route-finder as a pkg/services.Service.
Index ¶
Constants ¶
View Source
const Type = "route-finder"
Type is the registry key used in services.json blocks.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Path string `json:"-"`
PubKey cipher.PubKey `json:"public_key,omitempty"`
SecKey cipher.SecKey `json:"secret_key,omitempty"`
Addr string `json:"addr,omitempty"`
MetricsAddr string `json:"metrics_addr,omitempty"`
PprofAddr string `json:"pprof_addr,omitempty"`
Redis string `json:"redis,omitempty"`
RedisPoolSize int `json:"redis_pool_size,omitempty"`
LogLevel string `json:"log_level,omitempty"`
Tag string `json:"tag,omitempty"`
Testing bool `json:"testing,omitempty"`
Mode string `json:"mode,omitempty"`
SurveyWhitelist []cipher.PubKey `json:"survey_whitelist,omitempty"`
TestEnvironment bool `json:"test_environment,omitempty"`
// DmsgPort is the dmsghttp listener port (default 80).
DmsgPort uint16 `json:"dmsg_port,omitempty"`
// Dmsg is the dmsg-related config block.
Dmsg cmdutil.DmsgConfig `json:"dmsg,omitempty"`
}
Config is the JSON configuration for route-finder.
func ParseBlock ¶
ParseBlock decodes a services.json block into a Config.
Click to show internal directories.
Click to hide internal directories.