ref: 79c40dcb08f0d512bd6d75d5e2acd3ddceec4530
dir: /receivepack/service/service.go/
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}
}