Documentation ¶
Index ¶
- func NewLockedWriter(w http.ResponseWriter) http.ResponseWriter
- type Client
- type Server
- func (s *Server) Flush(ctx context.Context, req *gresponsewriterproto.FlushRequest) (*gresponsewriterproto.FlushResponse, error)
- func (s *Server) Hijack(ctx context.Context, req *gresponsewriterproto.HijackRequest) (*gresponsewriterproto.HijackResponse, error)
- func (s *Server) Write(ctx context.Context, req *gresponsewriterproto.WriteRequest) (*gresponsewriterproto.WriteResponse, error)
- func (s *Server) WriteHeader(ctx context.Context, req *gresponsewriterproto.WriteHeaderRequest) (*gresponsewriterproto.WriteHeaderResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLockedWriter ¶ added in v0.5.1
func NewLockedWriter(w http.ResponseWriter) http.ResponseWriter
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an http.ResponseWriter that talks over RPC.
func NewClient ¶
func NewClient(header http.Header, client gresponsewriterproto.WriterClient, broker *plugin.GRPCBroker) *Client
NewClient returns a response writer connected to a remote response writer
func (*Client) WriteHeader ¶
type Server ¶
type Server struct { gresponsewriterproto.UnimplementedWriterServer // contains filtered or unexported fields }
Server is an http.ResponseWriter that is managed over RPC.
func NewServer ¶
func NewServer(writer http.ResponseWriter, broker *plugin.GRPCBroker) *Server
NewServer returns an http.ResponseWriter instance managed remotely
func (*Server) Flush ¶
func (s *Server) Flush(ctx context.Context, req *gresponsewriterproto.FlushRequest) (*gresponsewriterproto.FlushResponse, error)
func (*Server) Hijack ¶
func (s *Server) Hijack(ctx context.Context, req *gresponsewriterproto.HijackRequest) (*gresponsewriterproto.HijackResponse, error)
func (*Server) Write ¶
func (s *Server) Write(ctx context.Context, req *gresponsewriterproto.WriteRequest) (*gresponsewriterproto.WriteResponse, error)
func (*Server) WriteHeader ¶
func (s *Server) WriteHeader(ctx context.Context, req *gresponsewriterproto.WriteHeaderRequest) (*gresponsewriterproto.WriteHeaderResponse, error)
Click to show internal directories.
Click to hide internal directories.