MCPcopy
hub / github.com/gofiber/fiber / GetService

Function GetService

state.go:305–308  ·  view source on GitHub ↗

GetService returns a service present in the application's State.

(s *State, key string)

Source from the content-addressed store, hash-verified

303
304// GetService returns a service present in the application's State.
305func GetService[T Service](s *State, key string) (T, bool) {
306 srv, ok := GetState[T](s, s.serviceKey(key))
307 return srv, ok
308}
309
310// MustGetService returns a service present in the application's State.
311// It panics if the service is not found.

Callers

nothing calls this directly

Calls 1

serviceKeyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…