docs: fix stale references to development mode and retry target type
All checks were successful
check / check (push) Successful in 5s
All checks were successful
check / check (push) Successful in 5s
- README.md: remove 'in development mode' from admin user creation description (admin user creation is unconditional) - internal/delivery/engine.go: remove 'and retry' from HTTPTargetConfig comment (retry was merged into http target type) - internal/delivery/engine_test.go: remove '/retry' from newHTTPTargetConfig comment for consistency
This commit is contained in:
@@ -71,7 +71,7 @@ On first startup, webhooker automatically generates a cryptographically
|
|||||||
secure session encryption key and stores it in the database. This key
|
secure session encryption key and stores it in the database. This key
|
||||||
persists across restarts — no manual key management is needed.
|
persists across restarts — no manual key management is needed.
|
||||||
|
|
||||||
On first startup in development mode, webhooker creates an `admin` user
|
On first startup, webhooker creates an `admin` user
|
||||||
with a randomly generated password and logs it to stdout. This password
|
with a randomly generated password and logs it to stdout. This password
|
||||||
is only displayed once.
|
is only displayed once.
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ type Notifier interface {
|
|||||||
Notify(tasks []DeliveryTask)
|
Notify(tasks []DeliveryTask)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPTargetConfig holds configuration for http and retry target types.
|
// HTTPTargetConfig holds configuration for http target types.
|
||||||
type HTTPTargetConfig struct {
|
type HTTPTargetConfig struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Headers map[string]string `json:"headers,omitempty"`
|
Headers map[string]string `json:"headers,omitempty"`
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ func testEngine(t *testing.T, workers int) *Engine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// newHTTPTargetConfig returns a JSON config for an HTTP/retry target
|
// newHTTPTargetConfig returns a JSON config for an HTTP target
|
||||||
// pointing at the given URL.
|
// pointing at the given URL.
|
||||||
func newHTTPTargetConfig(url string) string {
|
func newHTTPTargetConfig(url string) string {
|
||||||
cfg := HTTPTargetConfig{URL: url}
|
cfg := HTTPTargetConfig{URL: url}
|
||||||
|
|||||||
Reference in New Issue
Block a user