github.com/awesome-flow/flow@v0.0.3-0.20190918184116-508d75d68a2c/pkg/corev1alpha1/interfaces.go (about)

     1  package corev1alpha1
     2  
     3  type Namer interface {
     4  	Name() string
     5  }
     6  
     7  type Receiver interface {
     8  	Receive(*Message) error
     9  }
    10  
    11  type Connector interface {
    12  	Connect(nthreads int, receiver Receiver) error
    13  }
    14  
    15  type Runner interface {
    16  	Start() error
    17  	Stop() error
    18  }
    19  
    20  type Actor interface {
    21  	Connector
    22  	Namer
    23  	Receiver
    24  	Runner
    25  }