(name string, h mount.Handler)
| 58 | type Opt func(*managerOptions) error |
| 59 | |
| 60 | func WithMountHandler(name string, h mount.Handler) Opt { |
| 61 | return func(o *managerOptions) error { |
| 62 | if o.handlers == nil { |
| 63 | o.handlers = make(map[string]mount.Handler) |
| 64 | } |
| 65 | o.handlers[name] = h |
| 66 | return nil |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func WithAllowedRoot(root string) Opt { |
| 71 | return func(o *managerOptions) error { |
no outgoing calls
searching dependent graphs…