Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCIDRs ¶ added in v0.4.0
ValidateCIDRs checks that all entries are valid CIDR notations or bare IPs. Returns an error listing any unparseable entries, so misconfigurations are caught at startup rather than silently ignored.
Types ¶
type ApiListener ¶
type ApiListener struct {
// contains filtered or unexported fields
}
func NewApiListener ¶
func NewApiListener(cfg ApiListenerConfig, httpHandler http.Handler) (*ApiListener, error)
func (*ApiListener) Addr ¶
func (l *ApiListener) Addr() string
func (*ApiListener) Start ¶
func (l *ApiListener) Start(ctx context.Context) error
Start begins the HTTP server and listens for shutdown signal Returns an error channel that will receive any startup errors
func (*ApiListener) Stop ¶
func (l *ApiListener) Stop() error
func (*ApiListener) Type ¶
func (l *ApiListener) Type() string
type ApiListenerConfig ¶
Click to show internal directories.
Click to hide internal directories.