Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Respond ¶
func Respond(w http.ResponseWriter, r *Response)
func RespondWithStatus ¶ added in v0.0.2
func RespondWithStatus(w http.ResponseWriter, s *status.Status)
func WithIgnoreServicesWithStreamError ¶
func WithIgnoreServicesWithStreamError() optFn
func WithInterceptor ¶
func WithInterceptor(i grpc.UnaryServerInterceptor) optFn
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NewStream ¶
func (c *Client) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)
type Request ¶
type Request struct { Method string `json:"method,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
type Response ¶
type Response struct { Data json.RawMessage `json:"data,omitempty"` Status json.RawMessage `json:"status,omitempty"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterService ¶
func (s *Server) RegisterService(sd *grpc.ServiceDesc, ss interface{})
Click to show internal directories.
Click to hide internal directories.