Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SenseUnit/dumbproxy
/ Validate
Method
Validate
auth/auth.go:15–15 ·
view source on GitHub ↗
(ctx context.Context, wr http.ResponseWriter, req *http.Request)
Source
from the content-addressed store, hash-verified
13
14
type
Auth
interface
{
15
Validate(ctx context.Context, wr http.ResponseWriter, req *http.Request) (string, bool)
16
io.Closer
17
}
18
Callers
8
requireBasicAuth
Function · 0.65
TestNewResponseStatic
Function · 0.65
handleSuccess
Method · 0.65
handleReject
Method · 0.65
handleReject
Method · 0.65
Validate
Method · 0.65
ServeHTTP
Method · 0.65
reject
Method · 0.65
Implementers
9
RedisAuth
auth/redis.go
BasicAuth
auth/basic.go
TLSCookieAuth
auth/tlscookie.go
StaticRejectAuth
auth/rejectstatic.go
HMACAuth
auth/hmac.go
RejectHTTPAuth
auth/rejecthttp.go
CertAuth
auth/cert.go
NoAuth
auth/noauth.go
staticReject
handler/direct_test.go
Calls
no outgoing calls
Tested by
1
TestNewResponseStatic
Function · 0.52