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

Function WithPostAuthPersistHook

internal/api/server.go:157–161  ·  view source on GitHub ↗

WithPostAuthPersistHook registers a hook to be called after auth persistence.

(hook auth.PostAuthHook)

Source from the content-addressed store, hash-verified

155
156// WithPostAuthPersistHook registers a hook to be called after auth persistence.
157func WithPostAuthPersistHook(hook auth.PostAuthHook) ServerOption {
158 return func(cfg *serverOptionConfig) {
159 cfg.postAuthPersistHook = hook
160 }
161}
162
163// WithPluginHost registers dynamic plugin HTTP adapters with the server.
164func WithPluginHost(host *pluginhost.Host) ServerOption {

Callers 1

BuildMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected