saturn_sync

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

saturn-sync-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr added in v0.2.0

func Ptr[T any](t T) *T

func ServePlugin added in v0.2.0

func ServePlugin(p Plugin)

Types

type BasePlugin added in v0.2.0

type BasePlugin struct{}

func (BasePlugin) Apply added in v0.2.0

func (p BasePlugin) Apply(ctx *protocolv1.Context) error

func (BasePlugin) Filter added in v0.2.0

func (p BasePlugin) Filter(ctx *protocolv1.Context) (bool, error)

func (BasePlugin) Init added in v0.2.0

func (p BasePlugin) Init(config map[string]string) error

func (BasePlugin) OnPrClosed added in v0.2.0

func (p BasePlugin) OnPrClosed(ctx *protocolv1.Context) error

func (BasePlugin) OnPrCreated added in v0.2.0

func (p BasePlugin) OnPrCreated(ctx *protocolv1.Context) error

func (BasePlugin) OnPrMerged added in v0.2.0

func (p BasePlugin) OnPrMerged(ctx *protocolv1.Context) error

func (BasePlugin) Priority added in v0.2.0

func (p BasePlugin) Priority() int32

type Plugin added in v0.2.0

type Plugin interface {
	Apply(ctx *protocolv1.Context) error
	Filter(ctx *protocolv1.Context) (bool, error)
	Init(config map[string]string) error
	Name() string
	OnPrClosed(ctx *protocolv1.Context) error
	OnPrCreated(ctx *protocolv1.Context) error
	OnPrMerged(ctx *protocolv1.Context) error
	Priority() int32
}

Directories

Path Synopsis
protocol
v1

Jump to

Keyboard shortcuts

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