@@ -14,18 +14,16 @@ var (
14
14
15
15
// ResourceManager is the interface to the network resource management subsystem
16
16
type ResourceManager interface {
17
- // GetSystem retrieves the system wide resource scope
18
- GetSystem () ResourceScope
19
- // GetTransient retrieves the transient (DMZ) resource scope
20
- GetTransient () ResourceScope
21
- // GetService retrieves a service-specific scope
22
- GetService (srv string ) ServiceScope
23
- // GetProtocol retrieves the resource management scope for a specific protocol.
24
- // If there is no configured limits for a particular protocol, then the default scope is
25
- // returned.
26
- GetProtocol (protocol.ID ) ProtocolScope
27
- // GetPeer retrieces the resource management scope for a specific peer.
28
- GetPeer (peer.ID ) PeerScope
17
+ // Viewystem views the system wide resource scope
18
+ ViewSystem (func (ResourceScope ) error ) error
19
+ // ViewTransient views the transient (DMZ) resource scope
20
+ ViewTransient (func (ResourceScope ) error ) error
21
+ // ViewService retrieves a service-specific scope
22
+ ViewService (string , func (ServiceScope ) error ) error
23
+ // ViewProtocol views the resource management scope for a specific protocol.
24
+ ViewProtocol (protocol.ID , func (ProtocolScope ) error ) error
25
+ // ViewPeer views the resource management scope for a specific peer.
26
+ ViewPeer (peer.ID , func (PeerScope ) error ) error
29
27
30
28
// OpenConnection creates a connection scope not yet associated with any peer; the connection
31
29
// is scoped at the transient scope.
0 commit comments