framework

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(p Robot, o options.ServiceOptions)

Types

type HandlerRegister

type HandlerRegister interface {
	RegisterIssueHandler(IssueHandler)
	RegisterPullRequestHandler(PullRequestHandler)
	RegisterPushEventHandler(PushEventHandler)
	RegisterNoteEventHandler(NoteEventHandler)
}

type IssueHandler

type IssueHandler func(e *gitee.IssueEvent, cfg config.Config, log *logrus.Entry) error

IssueHandler defines the function contract for a gitee.IssueEvent handler.

type NoteEventHandler

type NoteEventHandler func(e *gitee.NoteEvent, cfg config.Config, log *logrus.Entry) error

NoteEventHandler defines the function contract for a gitee.NoteEvent handler.

type PullRequestHandler

type PullRequestHandler func(e *gitee.PullRequestEvent, cfg config.Config, log *logrus.Entry) error

PullRequestHandler defines the function contract for a gitee.PullRequestEvent handler.

type PushEventHandler

type PushEventHandler func(e *gitee.PushEvent, cfg config.Config, log *logrus.Entry) error

PushEventHandler defines the function contract for a gitee.PushEvent handler.

type Robot

type Robot interface {
	NewConfig() config.Config
	RegisterEventHandler(HandlerRegister)
}

Jump to

Keyboard shortcuts

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