flock

package
v0.0.0-...-b380f87 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flock

type Flock struct {
	Url string
}

Flock handler implements handler.Handler interface, Notify event to Flock channel

func (*Flock) Handle

func (f *Flock) Handle(e event.StatemonitorEvent)

Handle handles an event.

func (*Flock) Init

func (f *Flock) Init(c *config.Config) error

Init prepares Flock configuration

type FlockMessage

type FlockMessage struct {
	Notification string                    `json:"notification"`
	Text         string                    `json:"text"`
	Attachements []FlockMessageAttachement `json:"attachments"`
}

FlockMessage struct

type FlockMessageAttachement

type FlockMessageAttachement struct {
	Title string                       `json:"title"`
	Color string                       `json:"color"`
	Views FlockMessageAttachementViews `json:"views"`
}

FlockMessageAttachement struct

type FlockMessageAttachementViews

type FlockMessageAttachementViews struct {
	Flockml string `json:"flockml"`
}

FlockMessageAttachementViews struct

Jump to

Keyboard shortcuts

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