probe-code 0.6.0

AI-friendly, fully local, semantic code search tool for large codebases
Documentation
1
2
3
4
5
6
7
8
9
10
11
package middleware

// IPWhiteListMiddleware is a middleware that checks if the client's IP is in the whitelist
type IPWhiteListMiddleware struct {
	Whitelist []string
}

// Name returns the name of the middleware
func (i *IPWhiteListMiddleware) Name() string {
	return "IPWhiteListMiddleware"
}