constants

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskQueueName               = "webhookx:queue"
	TaskQueueInvisibleQueueName = "webhookx:queue_invisible"
	TaskQueueDataName           = "webhookx:queue_data"
	TaskQueueVisibilityTimeout  = time.Second * 60
)

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    = 100
	RequeueInterval = time.Second * 60
)
View Source
const (
	Namespace             string   = "webhookx"
	EventCacheKey         CacheKey = "events"
	EndpointCacheKey      CacheKey = "endpoints"
	SourceCacheKey        CacheKey = "sources"
	WorkspaceCacheKey     CacheKey = "workspaces"
	AttemptCacheKey       CacheKey = "attempts"
	PluginCacheKey        CacheKey = "plugins"
	AttemptDetailCacheKey CacheKey = "attempt_details"
)

Variables

View Source
var (
	DefaultResponseHeaders = map[string]string{
		"Content-Type": "application/json",
		"Server":       "WebhookX/" + config.VERSION,
	}
	DefaultDelivererRequestHeaders = map[string]string{
		"User-Agent":   "WebhookX/" + config.VERSION,
		"Content-Type": "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

Jump to

Keyboard shortcuts

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