Documentation ¶
Index ¶
- type Binder
- type Request
- type Response
- type Service
- func (s *Service) Add(ctx context.Context, cfg config.BindingConfig, logLevel string) error
- func (s *Service) GetStatus() []*Status
- func (s *Service) PrometheusHandler() http.Handler
- func (s *Service) Remove(name string) error
- func (s *Service) SendRequest(ctx context.Context, req *Request) *Response
- func (s *Service) Start(ctx context.Context, cfg *config.Config) error
- func (s *Service) Stats() []*metrics.Report
- func (s *Service) Stop()
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binder ¶
type Binder struct {
// contains filtered or unexported fields
}
type Request ¶
type Request struct { Binding string `json:"binding"` Payload json.RawMessage `json:"payload"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) PrometheusHandler ¶
func (*Service) SendRequest ¶
type Status ¶
type Status struct { Binding string `json:"binding"` Ready bool `json:"ready"` SourceType string `json:"source_type"` SourceConnection string `json:"source_connection"` SourceConfig map[string]string `json:"source_config"` TargetType string `json:"target_type"` TargetConfig map[string]string `json:"target_config"` }
Click to show internal directories.
Click to hide internal directories.