MCPcopy Create free account
hub / github.com/gotify/server / remove

Method remove

api/stream/stream.go:93–104  ·  view source on GitHub ↗
(remove *client)

Source from the content-addressed store, hash-verified

91}
92
93func (a *API) remove(remove *client) {
94 a.lock.Lock()
95 defer a.lock.Unlock()
96 if userIDClients, ok := a.clients[remove.userID]; ok {
97 for i, client := range userIDClients {
98 if client == remove {
99 a.clients[remove.userID] = append(userIDClients[:i], userIDClients[i+1:]...)
100 break
101 }
102 }
103 }
104}
105
106func (a *API) register(client *client) {
107 a.lock.Lock()

Callers 3

Clients.tsxFile · 0.80
Users.tsxFile · 0.80
Applications.tsxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected