publisher

package
v0.0.0-...-9398901 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Publishers

Various publishers are available for use publishing packages, each of these can be configured for use as seen in examples below.

Configuration examples

stdout
publisher:
    type: stdout
GCP Pub Sub
publisher:
    type: gcp_pubsub
    config:
        url: gcppubsub://foo.bar
stdout
publisher:
    type: kafka
    config:
        brokers:
            - 127.0.0.1:9092
        topic: packagefeeds
HTTP client
publisher:
    type: http-client
    config:
      url: "http://target-server:8000/package_feeds_hook"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Send(ctx context.Context, body []byte) error
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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