Documentation ¶
Index ¶
- type Adapter
- func (s *Adapter) Addr() string
- func (s *Adapter) Close() error
- func (s *Adapter) CloseSession(ctx context.Context, req *mixer_v1beta1.CloseSessionRequest) (*mixer_v1beta1.CloseSessionResponse, error)
- func (s *Adapter) CreateSession(ctx context.Context, req *mixer_v1beta1.CreateSessionRequest) (*mixer_v1beta1.CreateSessionResponse, error)
- func (s *Adapter) HandleMetric(ctx context.Context, req *metric.HandleMetricRequest) (*mixer_v1beta1.ReportResult, error)
- func (s *Adapter) HandleTraceSpan(ctx context.Context, req *tracespan.HandleTraceSpanRequest) (*mixer_v1beta1.ReportResult, error)
- func (s *Adapter) Run(shutdown chan error)
- func (s *Adapter) Validate(ctx context.Context, req *mixer_v1beta1.ValidateRequest) (*mixer_v1beta1.ValidateResponse, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
Adapter is the SignalFx GRCP adapter server
func (*Adapter) CloseSession ¶
func (s *Adapter) CloseSession(ctx context.Context, req *mixer_v1beta1.CloseSessionRequest) (*mixer_v1beta1.CloseSessionResponse, error)
CloseSession is called by the mixer when a session is done and should be cleaned up
func (*Adapter) CreateSession ¶
func (s *Adapter) CreateSession(ctx context.Context, req *mixer_v1beta1.CreateSessionRequest) (*mixer_v1beta1.CreateSessionResponse, error)
CreateSession is called when the mixer wants a new session.
func (*Adapter) HandleMetric ¶
func (s *Adapter) HandleMetric(ctx context.Context, req *metric.HandleMetricRequest) (*mixer_v1beta1.ReportResult, error)
HandleMetric accepts metric values from Istio and delegates to the proper session handler if applicable
func (*Adapter) HandleTraceSpan ¶
func (s *Adapter) HandleTraceSpan(ctx context.Context, req *tracespan.HandleTraceSpanRequest) (*mixer_v1beta1.ReportResult, error)
HandleTraceSpan accepts trace spans from the Istio telemetry server and forwards them to SignalFx. This method delegates to the proper session handler.
func (*Adapter) Validate ¶
func (s *Adapter) Validate(ctx context.Context, req *mixer_v1beta1.ValidateRequest) (*mixer_v1beta1.ValidateResponse, error)
Validate is called by the mixer to ensure that the config is valid
Source Files ¶
Click to show internal directories.
Click to hide internal directories.