MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / newUserAPI

Function newUserAPI

internal/serverapi/users.go:75–86  ·  view source on GitHub ↗
(usersStore users.Store, nodesStore nodes.Store, ibStore inbounds.InboundStore, outboundStore outbounds.Store, base *API, dial jobs.NodeDialer, applyOpts jobs.ApplyOptions, geoDB *geoip.DB)

Source from the content-addressed store, hash-verified

73}
74
75func newUserAPI(usersStore users.Store, nodesStore nodes.Store, ibStore inbounds.InboundStore, outboundStore outbounds.Store, base *API, dial jobs.NodeDialer, applyOpts jobs.ApplyOptions, geoDB *geoip.DB) *userAPI {
76 return &userAPI{
77 users: usersStore,
78 nodes: nodesStore,
79 inboundStore: ibStore,
80 outboundStore: outboundStore,
81 base: base,
82 dial: dial,
83 applyOpts: applyOpts,
84 geoDB: geoDB,
85 }
86}
87
88func (a *userAPI) Register(mux *http.ServeMux) {
89 mux.HandleFunc("/v1/users", a.handleUsers)

Callers 3

RegisterUsersAPIFunction · 0.85
setupTestMuxFunction · 0.85

Calls

no outgoing calls

Tested by 2

setupTestMuxFunction · 0.68