notifier

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Validate() error
	BuildBlocks(analyser *code.Analyser) error
	BuildJSBlocks(analyser *code.Analyser) error
	BuildErrorBlocks(analyser *code.Analyser, message string) error
	GetBlocks() []map[string]any
	Notify() error
}

type Handler

type Handler struct {
	Client Client
}

func New

func New(client string) (*Handler, error)

type Slack

type Slack struct {
	WebhookURL string
	Errors     []string
	Blocks     []map[string]any
}

func (*Slack) BuildBlocks

func (slack *Slack) BuildBlocks(analyser *code.Analyser) error

func (*Slack) BuildErrorBlocks added in v0.12.0

func (slack *Slack) BuildErrorBlocks(analyser *code.Analyser, message string) error

func (*Slack) BuildJSBlocks added in v0.11.0

func (slack *Slack) BuildJSBlocks(analyser *code.Analyser) error

func (*Slack) GetBlocks

func (slack *Slack) GetBlocks() []map[string]any

func (*Slack) Notify

func (slack *Slack) Notify() error

func (*Slack) Validate

func (slack *Slack) Validate() error

Jump to

Keyboard shortcuts

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