notification

package
v0.0.0-...-66c98c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SlackBodyTemplate defines Slack request body template
	SlackBodyTemplate = `` /* 778-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

type HTTPHandler struct {
}

HTTPHandler preprocess http event data and start the hook processing

func (*HTTPHandler) Handle

func (h *HTTPHandler) Handle(ctx context.Context, value interface{}) error

Handle handles http event

func (*HTTPHandler) IsStateful

func (h *HTTPHandler) IsStateful() bool

IsStateful ...

func (*HTTPHandler) Name

func (h *HTTPHandler) Name() string

Name ...

type SlackHandler

type SlackHandler struct {
}

SlackHandler preprocess event data to slack and start the hook processing

func (*SlackHandler) Handle

func (s *SlackHandler) Handle(ctx context.Context, value interface{}) error

Handle handles event to slack

func (*SlackHandler) IsStateful

func (s *SlackHandler) IsStateful() bool

IsStateful ...

func (*SlackHandler) Name

func (s *SlackHandler) Name() string

Name ...

Jump to

Keyboard shortcuts

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