Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fn ¶
Fn returns a function that attempts to add a route to caddycfginjector gRPC server via dialTarget.
Most likely this function will have to be called at least once, and then repeatedly using Periodically so that Caddy will have a chance to register the route in case of a later start.
Logging will be sent to a slog.Default() unless changed by SetLogger.
func Periodically ¶
Periodically is a helper that calls fn quickly and then repeats the call after refreshDelay duration until ctx requests a cancellation.
Provided ctx is also passed down to the fn.
go lib.Periodically(t, time.Second*2, fn)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.