Versions in this module Expand all Collapse all v2 v2.0.0 Nov 15, 2026 Changes in this version + const ContextLoginKey + func ClientIP(c *echo.Context) string + func NewMiddleware(auths ...*Auth) echo.MiddlewareFunc + func NewValidator(auths ...*Auth) middleware.BasicAuthValidator + type Auth struct + IPs []string + Login string + Password string + func (a *Auth) AllowedIP(ip string) bool + func (a *Auth) Match(login, password string) bool + func (a *Auth) SetIPs(ips []string) + func (a *Auth) Validate() error Other modules containing this package github.com/etkecc/go-echo-basic-auth