Skip to content

Commit

Permalink
add json tags
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Jun 23, 2024
1 parent 47af2b6 commit 461e0cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hedge.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func (w withGrpcHostPort) Apply(op *Op) { op.grpcHostPort = string(w) }
func WithGrpcHostPort(v string) Option { return withGrpcHostPort(v) }

type StreamMessage struct {
Payload *protov1.Payload
Error error
Payload *protov1.Payload `json:"payload"`
Error error `json:"error"`
}

type withLeaderStreamChannels struct {
Expand Down Expand Up @@ -737,8 +737,8 @@ func (op *Op) Send(ctx context.Context, msg []byte) ([]byte, error) {
}

type StreamToLeaderOutput struct {
In chan *StreamMessage
Out chan *StreamMessage
In chan *StreamMessage `json:"in"`
Out chan *StreamMessage `json:"out"`
}

// StreamToLeader returns an input and output channels for streaming to leader. To use the channels,
Expand Down

0 comments on commit 461e0cc

Please sign in to comment.