Documentation
¶
Overview ¶
Package api pkg/deployment/conf/api/api.go c4-net-discovery
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API represents the api of the stun-list service.
type Config ¶
type Config struct {
StunServers []string `json:"stun_servers"`
SetupNodes []cipher.PubKey `json:"route_setup_nodes"`
SurveyWhitelist []cipher.PubKey `json:"survey_whitelist"`
TransportSetupPKs []cipher.PubKey `json:"transport_setup"`
}
Config contains the list of stun servers and setup-nodes
type Error ¶
type Error struct {
Error string `json:"error"`
}
Error is the object returned to the client when there's an error.
type HealthCheckResponse ¶
type HealthCheckResponse struct {
ServiceName string `json:"service_name,omitempty"`
BuildInfo *buildinfo.Info `json:"build_info,omitempty"`
StartedAt time.Time `json:"started_at"`
DmsgAddr string `json:"dmsg_address,omitempty"`
}
HealthCheckResponse is struct of /health endpoint
Click to show internal directories.
Click to hide internal directories.