Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Annotation key used in Thrift IDL StreamingModeKey = "streaming.mode" // Streaming mode identifiers StreamingBidirectional = "bidirectional" // Bidirectional streaming API over HTTP2 StreamingClientSide = "client" // Client-side streaming API over HTTP2 StreamingServerSide = "server" // Server-side streaming API over HTTP2 StreamingUnary = "unary" // Unary API over HTTP2, different from Kitex Thrift/Protobuf )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Streaming ¶
type Streaming struct { Mode string `thrift:"Mode,1" json:"Mode"` ClientStreaming bool `thrift:"ClientStreaming,2" json:"ClientStreaming"` ServerStreaming bool `thrift:"ServerStreaming,3" json:"ServerStreaming"` BidirectionalStreaming bool `thrift:"BidirectionalStreaming,4" json:"BidirectionalStreaming"` Unary bool `thrift:"Unary,5" json:"Unary"` IsStreaming bool `thrift:"IsStreaming,6" json:"IsStreaming"` }
Streaming represents the streaming mode of a function
Click to show internal directories.
Click to hide internal directories.