github.com/pavlo67/common@v0.5.3/common/joiner/operator.go (about)

     1  package joiner
     2  
     3  type InterfaceKey string
     4  
     5  type Component struct {
     6  	InterfaceKey
     7  	Interface interface{}
     8  }
     9  
    10  type Operator interface {
    11  	Join(interface{}, InterfaceKey) error
    12  	Interface(InterfaceKey) interface{}
    13  	InterfacesAll(ptrToInterface interface{}) []Component
    14  	CloseAll()
    15  }
    16  
    17  type Closer interface {
    18  	Close() error
    19  }