Skip to content

Commit

Permalink
backend: wip on serialize api
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Aug 30, 2023
1 parent dde5877 commit e4c1836
Show file tree
Hide file tree
Showing 15 changed files with 1,449 additions and 664 deletions.
9 changes: 9 additions & 0 deletions backend/pkg/api/handle_topic_publish_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
package api

import (
"context"
"errors"
"fmt"
"net/http"

"connectrpc.com/connect"
"github.com/cloudhut/common/rest"
"github.com/twmb/franz-go/pkg/kgo"

v1alpha "github.com/redpanda-data/console/backend/pkg/protogen/redpanda/api/console/v1alpha"
)

type recordsRequest struct {
Expand Down Expand Up @@ -139,3 +144,7 @@ func (api *API) handlePublishTopicsRecords() http.HandlerFunc {
rest.SendResponse(w, r, api.Logger, http.StatusOK, publishRes)
}
}

func (api *API) PublishMessage(context.Context, *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("redpanda.api.console.v1alpha.ConsoleService.PublishMessage is not implemented"))
}
348 changes: 348 additions & 0 deletions backend/pkg/protogen/redpanda/api/console/v1alpha/common.pb.go

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e4c1836

Please sign in to comment.