Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct { }
Codec creates a CodecRequest to process each request.
func (*Codec) NewRequest ¶
func (c *Codec) NewRequest(r *http.Request) rpc.CodecRequest
NewRequest returns a CodecRequest.
type CodecRequest ¶
type CodecRequest struct {
// contains filtered or unexported fields
}
CodecRequest decodes and encodes a single request.
func (*CodecRequest) Method ¶
func (c *CodecRequest) Method() (string, error)
Method returns the RPC method for the current request.
The method uses a dotted notation as in "Service.Method".
func (*CodecRequest) ReadRequest ¶
func (c *CodecRequest) ReadRequest(args interface{}) error
ReadRequest fills the request object for the RPC method.
func (*CodecRequest) WriteError ¶
func (c *CodecRequest) WriteError(w http.ResponseWriter, status int, err error)
func (*CodecRequest) WriteResponse ¶
func (c *CodecRequest) WriteResponse(w http.ResponseWriter, reply interface{})
WriteResponse encodes the response and writes it to the ResponseWriter.
type RequestBody ¶
type RequestEnvelope ¶
type RequestEnvelope struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` Header []byte `xml:"http://schemas.xmlsoap.org/soap/envelope/ Header,omitempty"` Body RequestBody `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` }
type ResponseBody ¶
type ResponseEnvelope ¶
type ResponseEnvelope struct { XMLName xml.Name `xml:"Envelope"` ENV string `xml:"xmlns,attr"` Header []byte `xml:"Header,omitempty"` Body interface{} `xml:"Body"` }
func NewFault ¶
func NewFault(c, s string, detail interface{}) *ResponseEnvelope
func NewResponse ¶
func NewResponse(data interface{}) *ResponseEnvelope
Click to show internal directories.
Click to hide internal directories.