github.com/Jeffail/benthos/v3@v3.65.0/lib/broker/mock.go (about)

     1  package broker
     2  
     3  import "time"
     4  
     5  //------------------------------------------------------------------------------
     6  
     7  // MockType implements the broker.Type interface.
     8  type MockType struct {
     9  }
    10  
    11  // CloseAsync does nothing.
    12  func (m MockType) CloseAsync() {
    13  	// Do nothing
    14  }
    15  
    16  // WaitForClose does nothing.
    17  func (m MockType) WaitForClose(time.Duration) error {
    18  	// Do nothing
    19  	return nil
    20  }
    21  
    22  //------------------------------------------------------------------------------