sourcehttp

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPSource

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

HTTPSource implements the hermod.Source interface for polling HTTP endpoints.

func NewHTTPSource

func NewHTTPSource(url, method string, headers map[string]string, interval time.Duration, dataPath string) *HTTPSource

func (*HTTPSource) Ack

func (s *HTTPSource) Ack(ctx context.Context, msg hermod.Message) error

func (*HTTPSource) Close

func (s *HTTPSource) Close() error

func (*HTTPSource) Ping

func (s *HTTPSource) Ping(ctx context.Context) error

func (*HTTPSource) Read

func (s *HTTPSource) Read(ctx context.Context) (hermod.Message, error)

Jump to

Keyboard shortcuts

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