package queries import ( "context" "git.aiterp.net/rpdata/api/models" "git.aiterp.net/rpdata/api/models/channels" ) func (r *resolver) Channel(ctx context.Context, name string) (models.Channel, error) { return channels.FindName(name) } func (r *resolver) Channels(ctx context.Context, filter *channels.Filter) ([]models.Channel, error) { return channels.List(filter) }