MCPcopy
hub / github.com/mochi-mqtt/server / Provides

Method Provides

hooks.go:75–75  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

73type Hook interface {
74 ID() string
75 Provides(b byte) bool
76 Init(config any) error
77 Stop() error
78 SetOpts(l *slog.Logger, o *HookOptions)

Callers 15

TestHooksProvidesFunction · 0.65
TestHookBaseProvidesNoneFunction · 0.65
ServeMethod · 0.65
readStoreMethod · 0.65
ProvidesMethod · 0.65
OnSysInfoTickMethod · 0.65
OnStartedMethod · 0.65
OnStoppedMethod · 0.65
OnConnectMethod · 0.65
OnSessionEstablishMethod · 0.65
OnSessionEstablishedMethod · 0.65
OnDisconnectMethod · 0.65

Implementers 1

HookBasehooks.go

Calls

no outgoing calls

Tested by 8

TestHooksProvidesFunction · 0.52
TestHookBaseProvidesNoneFunction · 0.52
TestAllowAllProvidesFunction · 0.52
TestBasicProvidesFunction · 0.52
TestProvidesFunction · 0.52
TestProvidesFunction · 0.52
TestProvidesFunction · 0.52
TestProvidesFunction · 0.52