MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / WithPostAuthHook

Function WithPostAuthHook

internal/api/server.go:150–154  ·  view source on GitHub ↗

WithPostAuthHook registers a hook to be called after auth record creation.

(hook auth.PostAuthHook)

Source from the content-addressed store, hash-verified

148
149// WithPostAuthHook registers a hook to be called after auth record creation.
150func WithPostAuthHook(hook auth.PostAuthHook) ServerOption {
151 return func(cfg *serverOptionConfig) {
152 cfg.postAuthHook = hook
153 }
154}
155
156// WithPostAuthPersistHook registers a hook to be called after auth persistence.
157func WithPostAuthPersistHook(hook auth.PostAuthHook) ServerOption {

Callers 1

BuildMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected