eventmesh

package
v0.0.0-...-5cf3e1d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	Client *http.Client
	Target string
	// contains filtered or unexported fields
}

Sender is responsible for sending messages over HTTP.

func NewSender

func NewSender(target string, c *http.Client, l *logger.Logger) *Sender

NewSender returns a new Sender instance with the given target and client.

func (*Sender) Checker

func (s *Sender) Checker() *health.ConfigurableChecker

func (*Sender) NewRequestWithTarget

func (s *Sender) NewRequestWithTarget(ctx context.Context, target string) (*http.Request, error)

NewRequestWithTarget returns a new HTTP POST request with the given context and target.

func (*Sender) Send

func (s *Sender) Send(ctx context.Context, event *cev2event.Event) sender.PublishError

func (*Sender) URL

func (s *Sender) URL() string

Jump to

Keyboard shortcuts

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