senders

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(features Features, senders Config) *[]Sender

Create builds senders from a config

func Send

func Send(senders *[]Sender, changelog *types.Changelog) error

Send forwards changelog to senders

Types

type Config

type Config struct {
	STDOUT        stdoutConfig
	GITHUBRELEASE githubReleaseConfig
	CUSTOMAPI     customAPIConfig
}

Config centralizes config needed for each sender

type Features

type Features struct {
	ENABLED       bool
	GITHUBRELEASE bool
	STDOUT        bool
	CUSTOMAPI     bool
}

Features gives which senders are enabled

type Sender

type Sender interface {
	Send(changelog *types.Changelog) error
}

Sender defines where the changelog produced must be sent

Jump to

Keyboard shortcuts

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