constants

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TaskQueueName                  = "webhookx:queue"
	TaskQueueDataName              = "webhookx:queue_data"
	TaskQueueVisibilityTimeout     = time.Second * 65
	TaskQueuePreScheduleTimeWindow = time.Minute * 3
)

Task Queue

View Source
const (
	QueueRedisQueueName         = "webhookx:proxy_queue"
	QueueRedisGroupName         = "group_default"
	QueueRedisConsumerName      = "consumer_default"
	QueueRedisVisibilityTimeout = time.Second * 60
)

Redis Queue

View Source
const (
	RequeueBatch    = 20
	RequeueInterval = time.Second * 60
)
View Source
const (
	Namespace             string   = "webhookx"
	EventCacheKey         CacheKey = "events"
	EndpointCacheKey      CacheKey = "endpoints"
	EndpointPluginsKey    CacheKey = "endpoint_plugins"
	SourcePluginsKey      CacheKey = "source_plugins"
	SourceCacheKey        CacheKey = "sources"
	WorkspaceCacheKey     CacheKey = "workspaces"
	AttemptCacheKey       CacheKey = "attempts"
	PluginCacheKey        CacheKey = "plugins"
	AttemptDetailCacheKey CacheKey = "attempt_details"
	WorkspaceEndpointsKey CacheKey = "workspaces_endpoints"
)

Variables

View Source
var (
	HeaderEventId          = "X-Webhookx-Event-Id"
	DefaultResponseHeaders = []Header{
		{Name: "Server", Value: "WebhookX/" + config.VERSION},
	}
	DefaultDelivererRequestHeaders = []Header{
		{Name: "User-Agent", Value: "WebhookX/" + config.VERSION},
		{Name: "Content-Type", Value: "application/json; charset=utf-8"},
	}
)

Functions

This section is empty.

Types

type CacheKey

type CacheKey string

func (CacheKey) Build

func (c CacheKey) Build(id string) string
type Header struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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