notifications

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "Jitsu-Server"
)

Variables

This section is empty.

Functions

func Close

func Close()

func Custom

func Custom(payload string)

func Flush

func Flush()

func Init

func Init(serviceName, version, url, serverName string, errorLoggingFunc func(format string, v ...interface{}))

func ServerStart

func ServerStart(systemInfo *runtime.Info)

func SystemError

func SystemError(msg ...interface{})

func SystemErrorf

func SystemErrorf(format string, v ...interface{})

Types

type Attachment

type Attachment struct {
	Blocks []Block `json:"blocks,omitempty"`
}

type Block

type Block struct {
	Type string `json:"type,omitempty"`
	Text *Text  `json:"text,omitempty"`
}

type IPInfo

type IPInfo struct {
	IP string `json:"ip"`
}

type SlackMessage

type SlackMessage struct {
	Text        string       `json:"text,omitempty"`
	Attachments []Attachment `json:"attachments,omitempty"`
}

type SlackNotifier

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

func (*SlackNotifier) Send

func (sn *SlackNotifier) Send(payload string) error

type Text

type Text struct {
	Type string `json:"type,omitempty"`
	Text string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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