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

Function NewWithUsers

internal/serverapi/api.go:78–86  ·  view source on GitHub ↗
(nodesStore nodes.Store, usersStore users.Store, inboundStore inbounds.InboundStore, outboundStore outbounds.Store, applyOpts jobs.ApplyOptions, settings UpdateSettingsStore)

Source from the content-addressed store, hash-verified

76}
77
78func NewWithUsers(nodesStore nodes.Store, usersStore users.Store, inboundStore inbounds.InboundStore, outboundStore outbounds.Store, applyOpts jobs.ApplyOptions, settings UpdateSettingsStore) *API {
79 api := New(nodesStore)
80 api.usersStore = usersStore
81 api.inboundStore = inboundStore
82 api.outboundStore = outboundStore
83 api.applyOpts = applyOpts
84 api.settings = settings
85 return api
86}
87
88func (a *API) SetAccessLogStore(s accesslogs.Store) {
89 a.accessLogStore = s

Callers 1

RunFunction · 0.92

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected