httpsource

package
v0.0.0-...-fa1d311 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(cfg config.Connection) (res itf.EventConnection, err error)

Types

type HTTPEventConnection

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

func (*HTTPEventConnection) Close

func (c *HTTPEventConnection) Close() (err error)

func (*HTTPEventConnection) NewCache

func (c *HTTPEventConnection) NewCache(cfg config.Cache) (res itf.EventCache, err error)

func (*HTTPEventConnection) NewInput

func (c *HTTPEventConnection) NewInput(cfg config.Input) (res itf.EventInput, err error)

func (*HTTPEventConnection) NewOutput

func (c *HTTPEventConnection) NewOutput(cfg config.Output) (res itf.EventOutput, err error)

type HTTPEventInput

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

func (*HTTPEventInput) Close

func (s *HTTPEventInput) Close() (err error)

func (*HTTPEventInput) Receive

func (s *HTTPEventInput) Receive() (res <-chan itf.EventMessage, err error)

type HTTPEventOutput

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

func (*HTTPEventOutput) Close

func (s *HTTPEventOutput) Close() (err error)

func (*HTTPEventOutput) Ingest

func (s *HTTPEventOutput) Ingest(c <-chan itf.RunnerResult) (err error)

type HttpEventMessage

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

func (HttpEventMessage) Ack

func (m HttpEventMessage) Ack() error

func (HttpEventMessage) Data

func (m HttpEventMessage) Data() ([]byte, error)

func (HttpEventMessage) DataString

func (m HttpEventMessage) DataString() (string, error)

func (HttpEventMessage) Metadata

func (m HttpEventMessage) Metadata(key string) (res []string, err error)

func (HttpEventMessage) Nak

func (m HttpEventMessage) Nak() error

func (HttpEventMessage) ReplyTo

func (m HttpEventMessage) ReplyTo() (string, error)

func (HttpEventMessage) Time

func (m HttpEventMessage) Time() (time.Time, error)

func (HttpEventMessage) Topic

func (m HttpEventMessage) Topic() (string, error)

Jump to

Keyboard shortcuts

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