Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignRequestID ¶
AssignRequestID is a middleware that assigns a unique request ID to each incoming HTTP request.
Types ¶
type Sealer ¶
type Sealer interface {
Seal(urlStr, tmplStr string) (string, error)
Unseal(token string) (urlStr, tmplStr string, err error)
}
Sealer defines methods to crypt and decrypt webhook configurations, allowing them to be safely included in URLs without exposing sensitive information or risking tampering.
type Server ¶
type Server struct {
Addr string
BaseURL string // must be without trailing slash, e.g. http://localhost:8080
Version string
Password string //nolint:gosec // intentional secret field
Client *http.Client
Debug bool
Sealer Sealer
// contains filtered or unexported fields
}
Server remaps the incoming JSON to the request, as specified by the configuration in the URL
Click to show internal directories.
Click to hide internal directories.