relay

package
v0.0.0-...-5f0dc1b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: CC0-1.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupRelayedEvents

func CleanupRelayedEvents(serviceContext *gcontext.ServiceContext)

func GRPCRelay

func GRPCRelay(internalEvent *v1.WebhookEventInternal, relay *v1.RelayConfig, repositoryId string)

func HTTPRelay

func HTTPRelay(event *v1.WebhookEventInternal, relayEndpoint *url.URL)

HTTPRelay testing the relay functionality

func InitiateRelay

func InitiateRelay(serviceContext *gcontext.ServiceContext, repositoryId string)

func RelayCachedEvents

func RelayCachedEvents(serviceContext *gcontext.ServiceContext, repositoryId string)

func RelayHealthCheck

func RelayHealthCheck(serviceContext *gcontext.ServiceContext)

Types

type Status

type Status struct {
	LastCheckWasSuccessfull     bool
	CounterOfFailedHealthChecks int
	TimeOfLastCheck             time.Time
	TimeOfLastFailure           time.Time
}

Jump to

Keyboard shortcuts

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