gate

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gates implements interface for each gate (api/webhook integration)

Index

Constants

This section is empty.

Variables

View Source
var FactoryList []DriverFactory

FactoryList is a list of available gates factories

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// Name of the gate
	Name() string

	// SetName of the gate
	SetName(name string)

	// Gives gate configs and check if it's ok
	// -> wd - fish working directory
	// -> config - gate configuration in json format
	Prepare(wd string, config []byte) error

	// Shutdown gracefully stops the gate
	Shutdown() error

	// GetRPCServices returns any RPC services this gate driver wants to register
	// Returns nil if no services to register
	GetRPCServices() []RPCService
}

Driver interface of the functions that connects each Gate to Fish

type DriverFactory

type DriverFactory interface {
	// Name of the gate
	Name() string

	// Generates new gate
	New(db *database.Database) Driver
}

DriverFactory allows to generate new instances of the gates

type RPCService added in v0.9.0

type RPCService struct {
	Path    string
	Handler http.Handler
}

RPCService represents an RPC service that can be registered

Directories

Path Synopsis
Package github implements GitHub Actions gate to allow Webhooks to trigger Applications events
Package github implements GitHub Actions gate to allow Webhooks to trigger Applications events
Package proxyssh implements SSH Proxy for user to get to the ApplicationResource
Package proxyssh implements SSH Proxy for user to get to the ApplicationResource

Jump to

Keyboard shortcuts

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