Function
NewWithUsers
(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 | |
| 78 | func 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 | |
| 88 | func (a *API) SetAccessLogStore(s accesslogs.Store) { |
| 89 | a.accessLogStore = s |
Tested by
no test coverage detected