diff options
| author | 2026-03-26 09:14:59 +0000 | |
|---|---|---|
| committer | 2026-03-26 09:14:59 +0000 | |
| commit | 3d25bda9d5da6814661828adabe8a09f9d01aefb (patch) | |
| tree | d034e28079333f85e5d7b96d921282eddd4798d6 /network/receivepack/service/service.go | |
| parent | object/id: Empty tree (diff) | |
| signature | No signature | |
network/receivepack: Rename from receivepack
Diffstat (limited to 'network/receivepack/service/service.go')
| -rw-r--r-- | network/receivepack/service/service.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network/receivepack/service/service.go b/network/receivepack/service/service.go new file mode 100644 index 00000000..a57fd354 --- /dev/null +++ b/network/receivepack/service/service.go @@ -0,0 +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} +} |
