code: func (h *apiExecutor) Channels(ctx context.Context, cmd *ChannelsRequest) *ChannelsResponse {
  	defer func(started time.Time) {
  		apiCommandDurationSummary.WithLabelValues(h.protocol, "channels").Observe(time.Since(started).Seconds())
  	}(time.Now())
  
  	resp := &ChannelsResponse{}
  
  	channels, err := h.node.Channels()
  	if err != nil {
  		h.node.Log(centrifuge.NewLogEntry(centrifuge.LogLevelError, "error calling channels", map[string]interface{}{"error": err.Error()}))
  		resp.Error = ErrorInternal
  		return resp
  	}
  
  	resp.Result = &ChannelsResult{
  		Channels: channels,
  	}
  	return resp
  }
docs: // Channels returns active channels.