// NewGroup instantiates either a new application or orderer config
NewGroup instantiates either a new application or orderer config
// NewGroup instantiates either a new application or orderer config
func (cg *ChannelGroup) NewGroup(group string) (ValueProposer, error) {
	switch group {
	case ApplicationGroupKey:
		return NewApplicationGroup(cg.mspConfigHandler), nil
	case OrdererGroupKey:
		return NewOrdererGroup(cg.mspConfigHandler), nil
	case ConsortiumsGroupKey:
		return NewConsortiumsGroup(cg.mspConfigHandler), nil
	default:
		return nil, fmt.Errorf("Disallowed channel group: %s", group)
	}
}
func ( cg * ChannelGroup ) NewGroup ( group string ) ( ValueProposer , error ) { switch group { case ApplicationGroupKey : return NewApplicationGroup ( cg . mspConfigHandler ) , nil case OrdererGroupKey : return NewOrdererGroup ( cg . mspConfigHandler ) , nil case ConsortiumsGroupKey : return NewConsortiumsGroup ( cg . mspConfigHandler ) , nil default : return nil , fmt . Errorf ( " " , group ) } }
NewGroup instantiates either a new application or orderer config
NewGroup instantiates either a new application or orderer config