blob: a57fd3547a2bdb4d4671764ff2b224c7a28284ce (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}
}
|