slack

package
v0.0.0-...-8939947 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(packages []*tester.Package, opts ...Option) *App

func (*App) Fire

func (a *App) Fire(ctx context.Context, alert *alerting.Alert) error

func (*App) HandleSlackCommand

func (s *App) HandleSlackCommand(w http.ResponseWriter, r *http.Request)

type Option

type Option func(*options)

func WithAccessToken

func WithAccessToken(token string) Option

func WithBaseURL

func WithBaseURL(url string) Option

func WithCustomChannels

func WithCustomChannels(channels map[string][]string) Option

func WithDefaultChannels

func WithDefaultChannels(channels []string) Option

func WithScheduler

func WithScheduler(scheduler *scheduler.Scheduler) Option

func WithSigningSecret

func WithSigningSecret(signingSecret string) Option

Jump to

Keyboard shortcuts

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