Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectionMonitoringInterval = 10 * time.Second ConnectionMonitoringJitter = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ChangelogToString ¶
func ChangelogToString(changes diff.Changelog) string
Types ¶
type ConfigAccumulator ¶
type ConfigAccumulator struct { Queries []*api.PreparedQueryDefinition ConsulLoadOpts config.LoadOpts }
type QueryRegistration ¶
type QueryRegistration struct {
// contains filtered or unexported fields
}
func NewPreparedQueryRegistration ¶
func NewPreparedQueryRegistration( ctx context.Context, wg *sync.WaitGroup, client *api.Client, deleteOnExit bool, def *api.PreparedQueryDefinition, ) *QueryRegistration
func (*QueryRegistration) Destroy ¶
func (s *QueryRegistration) Destroy()
func (*QueryRegistration) Update ¶
func (s *QueryRegistration) Update(def *api.PreparedQueryDefinition)
type RegistrationService ¶
type RegistrationService interface { Health() error Reload(ctx context.Context) error Wait(timeout time.Duration) error }
func New ¶
func New(config *Config) (RegistrationService, error)
type RuntimeConfig ¶
type RuntimeConfig struct { Queries []*api.PreparedQueryDefinition Services []*api.AgentServiceRegistration }
func LoadSources ¶
func LoadSources(sources *SourceConfig) (*RuntimeConfig, error)
type ServiceRegistration ¶
type ServiceRegistration struct {
// contains filtered or unexported fields
}
func NewServiceRegistration ¶
func NewServiceRegistration( ctx context.Context, wg *sync.WaitGroup, client *api.Client, def *api.AgentServiceRegistration, ) *ServiceRegistration
func (*ServiceRegistration) Destroy ¶
func (s *ServiceRegistration) Destroy()
func (*ServiceRegistration) Update ¶
func (s *ServiceRegistration) Update(reg *api.AgentServiceRegistration)
type SourceConfig ¶
Click to show internal directories.
Click to hide internal directories.