Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebhookConfigurationPathRefs ¶
func WebhookConfigurationPathRefs(cfg *config.WebhookConfiguration) ([]*string, error)
webhookConfigurationPathRefs returns pointers to all the WebhookConfiguration fields that contain filepaths. You might use this, for example, to resolve all relative paths against some common root before passing the configuration to the application. This method must be kept up to date as new fields are added.
Types ¶
type WebhookConfigFile ¶
type WebhookConfigFile struct {
Config *config.WebhookConfiguration
}
func New ¶
func New() *WebhookConfigFile
func (*WebhookConfigFile) DecodeAndConfigure ¶
func (cfg *WebhookConfigFile) DecodeAndConfigure(data []byte) error
func (*WebhookConfigFile) GetPathRefs ¶
func (cfg *WebhookConfigFile) GetPathRefs() ([]*string, error)
Click to show internal directories.
Click to hide internal directories.