Help us shape the future of Go! Take the 2026 Go Developer Survey

constants

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 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

Variables

View Source
var (
	EventCacheKey         = register(CacheKey{"events", "v1"})
	EndpointCacheKey      = register(CacheKey{"endpoints", "v1"})
	SourceCacheKey        = register(CacheKey{"sources", "v1"})
	WorkspaceCacheKey     = register(CacheKey{"workspaces", "v1"})
	AttemptCacheKey       = register(CacheKey{"attempts", "v1"})
	PluginCacheKey        = register(CacheKey{"plugins", "v1"})
	AttemptDetailCacheKey = register(CacheKey{"attempt_details", "v1"})
	WorkspaceEndpointsKey = register(CacheKey{"workspaces_endpoints", "v1"})
)
View Source
var (
	HeaderEventId          = "X-Webhookx-Event-Id"
	DefaultResponseHeaders = []Header{
		{Name: "Server", Value: "WebhookX/" + webhookx.VERSION},
	}
	DefaultDelivererRequestHeaders = []Header{
		{Name: "User-Agent", Value: "WebhookX/" + webhookx.VERSION},
		{Name: "Content-Type", Value: "application/json; charset=utf-8"},
	}
)

Functions

This section is empty.

Types

type CacheKey

type CacheKey struct {
	Name    string
	Version string
}

CacheKey cache key definition. format "webhookx:<name>:<version>:<id>[suffixes]"

func CacheKeyFrom added in v1.0.0

func CacheKeyFrom(name string) CacheKey

func (CacheKey) Build

func (c CacheKey) Build(id string, suffixes ...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