mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
34 lines
603 B
Go
34 lines
603 B
Go
package client
|
|
|
|
type rpcRequest struct {
|
|
service string
|
|
method string
|
|
contentType string
|
|
request interface{}
|
|
}
|
|
|
|
func newRpcRequest(service, method string, request interface{}, contentType string) Request {
|
|
return &rpcRequest{
|
|
service: service,
|
|
method: method,
|
|
request: request,
|
|
contentType: contentType,
|
|
}
|
|
}
|
|
|
|
func (r *rpcRequest) ContentType() string {
|
|
return r.contentType
|
|
}
|
|
|
|
func (r *rpcRequest) Service() string {
|
|
return r.service
|
|
}
|
|
|
|
func (r *rpcRequest) Method() string {
|
|
return r.method
|
|
}
|
|
|
|
func (r *rpcRequest) Request() interface{} {
|
|
return r.request
|
|
}
|