notify

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelNotifyIcons

type ChannelNotifyIcons struct {
	// Success icon
	Success string `json:"success" yaml:"success" hcl:"success,optional"`
	// Error icon
	Error string `json:"error" yaml:"error" hcl:"success,optional"`
	// Warning icon
	Warning string `json:"warning" yaml:"warning" hcl:"success,optional"`
}

ChannelNotifyIcons is icon settings

type Notify

type Notify struct {
	// Name of the channel
	Name string `json:"name" yaml:"name" hcl:"name,label"`
	// Icons settings
	Icons  *ChannelNotifyIcons `json:"icons" yaml:"icons" hcl:"icons,block"`
	Ignore bool                `json:"ignore" yaml:"ignore" hcl:"ignore,optional"`
}

Notify config

func (Notify) Validate

func (cfg Notify) Validate() error

Validate config

Jump to

Keyboard shortcuts

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