github.com/PentoHQ/moq@v0.0.0-20190507125140-c45c141f300b/pkg/moq/testpackages/channels/example.go (about)

     1  package channels
     2  
     3  // Queue is a type to be sent down a channel.
     4  type Queue []string
     5  
     6  // Queuer provides a channel example.
     7  type Queuer interface {
     8  	Sub(topic string) (<-chan Queue, error)
     9  }