Documentation
¶
Overview ¶
Package webhooks provides a series of HTTP handlers for managing webhooks in a compatible database.
Index ¶
Constants ¶
View Source
const (
// WebhookIDURIParamKey is a standard string that we'll use to refer to webhook IDs with.
WebhookIDURIParamKey = "webhookID"
)
Variables ¶
View Source
var ( // Providers is our collection of what we provide to other services. Providers = wire.NewSet( ProvideWebhooksService, ) )
Functions ¶
func ProvideWebhooksService ¶
func ProvideWebhooksService( logger logging.Logger, cfg *Config, webhookDataManager types.WebhookDataManager, encoder encoding.ServerEncoderDecoder, routeParamManager routing.RouteParamManager, publisherProvider publishers.PublisherProvider, ) (types.WebhookDataService, error)
ProvideWebhooksService builds a new WebhooksService.
Types ¶
type Config ¶
type Config struct {
PreWritesTopicName string `json:"pre_writes_topic_name" mapstructure:"pre_writes_topic_name" toml:"pre_writes_topic_name,omitempty"`
PreArchivesTopicName string `json:"pre_archives_topic_name" mapstructure:"pre_archives_topic_name" toml:"pre_archives_topic_name,omitempty"`
Debug bool `json:"debug" mapstructure:"debug" toml:"debug,omitempty"`
Enabled bool `json:"enabled" mapstructure:"enabled" toml:"enabled,omitempty"`
// contains filtered or unexported fields
}
Config represents our database configuration.
Click to show internal directories.
Click to hide internal directories.