Documentation ¶
Index ¶
- 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 ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an implementation of a messenger channel that talks over RPC.
func NewClient ¶
func NewClient(header http.Header, client gresponsewriterproto.WriterClient, broker *plugin.GRPCBroker) *Client
NewClient returns a database instance connected to a remote database instance
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a http.Handler that is managed over RPC.
func NewServer ¶
func NewServer(writer http.ResponseWriter, broker *plugin.GRPCBroker) *Server
NewServer returns a http.Handler instance manage remotely
func (*Server) Flush ¶
func (s *Server) Flush(ctx context.Context, req *gresponsewriterproto.FlushRequest) (*gresponsewriterproto.FlushResponse, error)
Flush ...
func (*Server) Hijack ¶
func (s *Server) Hijack(ctx context.Context, req *gresponsewriterproto.HijackRequest) (*gresponsewriterproto.HijackResponse, error)
Hijack ...
func (*Server) Write ¶
func (s *Server) Write(ctx context.Context, req *gresponsewriterproto.WriteRequest) (*gresponsewriterproto.WriteResponse, error)
Write ...
func (*Server) WriteHeader ¶
func (s *Server) WriteHeader(ctx context.Context, req *gresponsewriterproto.WriteHeaderRequest) (*gresponsewriterproto.WriteHeaderResponse, error)
WriteHeader ...
Click to show internal directories.
Click to hide internal directories.