filters

package
v0.0.0-...-200a656 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterMap map[string]Filter

FilterMap map filter name to filter instance

Functions

This section is empty.

Types

type CommitMessage

type CommitMessage struct {
}

CommitMessage filter

func (*CommitMessage) Match

func (c *CommitMessage) Match(msg *common.Message) bool

Match return true if message matches the condition

type Filter

type Filter interface {
	Match(msg *common.Message) bool
}

Filter interface

func NewCommitMessage

func NewCommitMessage() Filter

NewCommitMessage return commit message filter

func NewUpDownMessage

func NewUpDownMessage() Filter

NewUpDownMessage return up down message filter

type UpDownMessage

type UpDownMessage struct {
}

UpDownMessage filter

func (*UpDownMessage) Match

func (c *UpDownMessage) Match(msg *common.Message) bool

Match return true if message matches the condition

Jump to

Keyboard shortcuts

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