github.com/yandex/pandora@v0.5.32/core/provider/dummy.go (about)

     1  package provider
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/yandex/pandora/core"
     7  )
     8  
     9  type Dummy struct {
    10  }
    11  
    12  func (d Dummy) Run(context.Context, core.ProviderDeps) error {
    13  	return nil
    14  }
    15  
    16  func (d Dummy) Acquire() (ammo core.Ammo, ok bool) {
    17  	return nil, true
    18  }
    19  
    20  func (d Dummy) Release(core.Ammo) {}
    21  
    22  var _ core.Provider = (*Dummy)(nil)