api

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(p Interface)

func Register

func Register(p Interface) error

Types

type Interface

type Interface interface {
	Name() string
	Init(nc *nats.Conn) error
	Next() (any, bool)
	Done(any)
	StartRunner(any) error
	StopRunner(*github.WorkflowJobEvent) error
	Status() ([]byte, error)
}

func MustProvider

func MustProvider(name string) Interface

func Provider

func Provider(name string) (Interface, error)

Jump to

Keyboard shortcuts

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