aboutsummaryrefslogtreecommitdiff
path: root/receivepack/service/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'receivepack/service/service.go')
-rw-r--r--receivepack/service/service.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/receivepack/service/service.go b/receivepack/service/service.go
index d204e9aa..a57fd354 100644
--- a/receivepack/service/service.go
+++ b/receivepack/service/service.go
@@ -1,11 +1,16 @@
package service
// Service executes protocol-independent receive-pack requests.
+//
+// Service borrows all dependencies supplied in Options.
type Service struct {
opts Options
}
// New creates one receive-pack service.
+//
+// The returned service borrows opts and does not take ownership of any stores,
+// roots, hooks, or I/O endpoints reachable through it.
func New(opts Options) *Service {
return &Service{opts: opts}
}