templates

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultMarkdownTemplate = `` /* 344-byte string literal not displayed */
View Source
const EmailMarkdownTemplate = `` /* 3610-byte string literal not displayed */

Variables

This section is empty.

Functions

func CompileTEmplateFromMapText

func CompileTEmplateFromMapText(tmplt string, configMap interface{}) (string, error)

func CompileTemplateFromMapHtml

func CompileTemplateFromMapHtml(tmplt string, configMap interface{}) (string, error)

func GetValFromMap

func GetValFromMap(valMap map[string]string, key string) string

func Inc

func Inc(i int) int

Types

type TemplateConfig

type TemplateConfig struct {
	monitor.NotificationTemplateConfig
}

func (TemplateConfig) GenerateEmailMarkdown

func (c TemplateConfig) GenerateEmailMarkdown() (string, error)

func (TemplateConfig) GenerateMarkdown

func (c TemplateConfig) GenerateMarkdown() (string, error)

Jump to

Keyboard shortcuts

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