gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/lifecycle.v2/group.go (about)

     1  package lifecycle
     2  
     3  type GroupMember struct {
     4  	Lifecycle
     5  	Important bool
     6  	Requires  []GroupMember
     7  }
     8  
     9  type Group struct {
    10  	members []GroupMember
    11  }
    12  
    13  //func (g *Group) startMember(member GroupMember, future future.Future[error]) {
    14  //	for _, require := range member.Requires {
    15  //
    16  //	}
    17  //}
    18  //
    19  //func (g *Group) start(_ Lifecycle, interrupter chan struct{}) error {
    20  //	for _, member := range g.members {
    21  //
    22  //	}
    23  //}