Documentation ¶ Index ¶ type Sensor func (s *Sensor) Close(ctx context.Context) error func (s *Sensor) Increment(delta float64) func (s *Sensor) Init(ctx context.Context) error func (s *Sensor) Ping(ctx context.Context) error func (s *Sensor) Set(newVal float64) func (s *Sensor) Update(_ context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Sensor ¶ type Sensor struct { sensors.UnimplementedSensor // Token is Bearer strategy token used to send metrics for endpoint sensor Token string `json:"token"` } func (*Sensor) Close ¶ func (s *Sensor) Close(ctx context.Context) error func (*Sensor) Increment ¶ func (s *Sensor) Increment(delta float64) func (*Sensor) Init ¶ func (s *Sensor) Init(ctx context.Context) error func (*Sensor) Ping ¶ func (s *Sensor) Ping(ctx context.Context) error func (*Sensor) Set ¶ func (s *Sensor) Set(newVal float64) func (*Sensor) Update ¶ func (s *Sensor) Update(_ context.Context) error Source Files ¶ View all Source files endpoint.go Click to show internal directories. Click to hide internal directories.