Documentation
¶
Index ¶
- func ParseLengthPrefixedMessage(r io.Reader, length uint32) ([]byte, error)
- func ParseStatusAndTrailer(r io.Reader, length uint32) (*status.Status, metadata.MD, error)
- type Header
- type Http1ClientConn
- type Http1ClientConnOption
- type Http1ClientStream
- func (h *Http1ClientStream) CloseSend() error
- func (h *Http1ClientStream) Context() context.Context
- func (h *Http1ClientStream) Header() (metadata.MD, error)
- func (h *Http1ClientStream) RecvMsg(m any) error
- func (h *Http1ClientStream) SendMsg(m any) error
- func (h *Http1ClientStream) Trailer() metadata.MD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct { ContentLength uint32 // contains filtered or unexported fields }
func (*Header) IsMessageHeader ¶
func (*Header) IsTrailerHeader ¶
type Http1ClientConn ¶
type Http1ClientConn struct {
// contains filtered or unexported fields
}
func NewHttp1ClientConn ¶
func NewHttp1ClientConn(target string, httpClient *http.Client, opts ...Http1ClientConnOption) *Http1ClientConn
func (*Http1ClientConn) Invoke ¶
func (h *Http1ClientConn) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error
func (*Http1ClientConn) NewStream ¶
func (h *Http1ClientConn) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)
func (*Http1ClientConn) Target ¶
func (h *Http1ClientConn) Target() string
type Http1ClientConnOption ¶
type Http1ClientConnOption func(*Http1ClientConn)
func WithPerRPCCredentials ¶
func WithPerRPCCredentials(perRpcCredentials credentials.PerRPCCredentials) Http1ClientConnOption
func WithScheme ¶
func WithScheme(scheme string) Http1ClientConnOption
type Http1ClientStream ¶
type Http1ClientStream struct {
// contains filtered or unexported fields
}
func NewHttp1ClientStream ¶
func (*Http1ClientStream) CloseSend ¶
func (h *Http1ClientStream) CloseSend() error
func (*Http1ClientStream) Context ¶
func (h *Http1ClientStream) Context() context.Context
func (*Http1ClientStream) RecvMsg ¶
func (h *Http1ClientStream) RecvMsg(m any) error
func (*Http1ClientStream) SendMsg ¶
func (h *Http1ClientStream) SendMsg(m any) error
func (*Http1ClientStream) Trailer ¶
func (h *Http1ClientStream) Trailer() metadata.MD
Click to show internal directories.
Click to hide internal directories.