WithLocalManagementPassword stores a runtime-only management password accepted for localhost requests.
(password string)
| 122 | |
| 123 | // WithLocalManagementPassword stores a runtime-only management password accepted for localhost requests. |
| 124 | func WithLocalManagementPassword(password string) ServerOption { |
| 125 | return func(cfg *serverOptionConfig) { |
| 126 | cfg.localPassword = password |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // WithKeepAliveEndpoint enables a keep-alive endpoint with the provided timeout and callback. |
| 131 | func WithKeepAliveEndpoint(timeout time.Duration, onTimeout func()) ServerOption { |
no outgoing calls
no test coverage detected