make api.Channel as interface