manager

package
v0.0.0-...-e2d3700 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxMessages                        = 100
	EventAlertManager gitlab.EventType = "AlertManager Hook"
)
View Source
const (
	Markdown string = "markdown"
	Text     string = "text"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EventType     gitlab.EventType `yaml:"event"`
	Type          string           `yaml:"type"`
	Content       string           `yaml:"content"`
	MentionedList []string         `json:"mentioned_list,omitempty"`
}

type EventInfo

type EventInfo struct {
	ProjectName string `json:"project_name"`
	EventType   gitlab.EventType
	Event       interface{} `json:"event"`
}

type Manager

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

func NewManager

func NewManager(configFile string) (*Manager, error)

func (*Manager) ProcessMessage

func (m *Manager) ProcessMessage()

func (*Manager) Run

func (m *Manager) Run() error

type Rule

type Rule struct {
	WeChatHook string   `yaml:"wechat_hook"`
	Config     []Config `yaml:"config"`
}

Jump to

Keyboard shortcuts

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