watch/view.go
func NewView(i *NewViewInput) (*View, error) {
	return &View{
		dependency: i.Dependency,
		clients:    i.Clients,
		maxStale:   i.MaxStale,
		once:       i.Once,
		retryFunc:  i.RetryFunc,
		stopCh:     make(chan struct{}, 1),
		vaultGrace: i.VaultGrace,
	}, nil
}
func NewView(i *NewViewInput) (*View, error) {
	return &View{
		dependency: i.Dependency,
		clients:    i.Clients,
		maxStale:   i.MaxStale,
		once:       i.Once,
		retryFunc:  i.RetryFunc,
		stopCh:     make(chan struct{}, 1),
		vaultGrace: i.VaultGrace,
	}, nil
}
// NewView constructs a new view with the given inputs.