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

Method setService

state.go:247–250  ·  view source on GitHub ↗

setService sets a service in the State.

(srv Service)

Source from the content-addressed store, hash-verified

245
246// setService sets a service in the State.
247func (s *State) setService(srv Service) {
248 // Always prepend the service key with the servicesStateKey to avoid collisions
249 s.Set(s.serviceKey(srv.String()), srv)
250}
251
252// Delete removes a key-value pair from the State.
253func (s *State) deleteService(srv Service) {

Callers 8

Test_ShutdownServicesFunction · 0.80
Test_LogServicesFunction · 0.80
TestState_ServiceFunction · 0.80
TestState_GetServiceFunction · 0.80
TestState_MustGetServiceFunction · 0.80
startServicesMethod · 0.80

Calls 3

SetMethod · 0.95
serviceKeyMethod · 0.95
StringMethod · 0.65

Tested by 7

Test_ShutdownServicesFunction · 0.64
Test_LogServicesFunction · 0.64
TestState_ServiceFunction · 0.64
TestState_GetServiceFunction · 0.64
TestState_MustGetServiceFunction · 0.64