httppush

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httppush implements the HTTP Push transport for CoreC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPTransport

func NewHTTPTransport(config core.TransportConfig) (core.Transport, error)

NewHTTPTransport creates a new HTTP transport.

Types

type HTTPTransport

type HTTPTransport struct {
	// contains filtered or unexported fields
}

HTTPTransport implements core.Transport for pushing collected data to HTTP endpoints.

func (*HTTPTransport) Init

func (t *HTTPTransport) Init(ctx context.Context, config core.TransportConfig) error

func (*HTTPTransport) Name

func (t *HTTPTransport) Name() string

func (*HTTPTransport) OnCommand

func (t *HTTPTransport) OnCommand() <-chan core.WriteCommand

func (*HTTPTransport) OnData

func (t *HTTPTransport) OnData() <-chan core.DataPoint

OnData returns the channel of data points received via the webhook HTTP server. Returns nil when webhook-addr is not configured.

func (*HTTPTransport) Publish

func (t *HTTPTransport) Publish(ctx context.Context, point core.DataPoint) error

func (*HTTPTransport) PublishBatch

func (t *HTTPTransport) PublishBatch(ctx context.Context, points []core.DataPoint) error

func (*HTTPTransport) Start

func (t *HTTPTransport) Start(ctx context.Context) error

func (*HTTPTransport) Status

func (t *HTTPTransport) Status() core.TransportStatus

func (*HTTPTransport) Stop

func (t *HTTPTransport) Stop() error

func (*HTTPTransport) Type

func (t *HTTPTransport) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL