Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
NewRequest(string, string, interface{}) Request
NewProtoRequest(string, string, interface{}) Request
NewJsonRequest(string, string, interface{}) Request
Call(context.Context, Request, interface{}) error
CallRemote(context.Context, string, Request, interface{}) error
Stream(context.Context, Request, interface{}) (Streamer, error)
StreamRemote(context.Context, string, Request, interface{}) (Streamer, error)
}
var (
DefaultClient Client = newRpcClient()
)
type Request ¶
type Request interface {
Service() string
Method() string
ContentType() string
Request() interface{}
}
func NewJsonRequest ¶
func NewProtoRequest ¶
func NewRequest ¶
Click to show internal directories.
Click to hide internal directories.