Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IsRPCTimeout ¶
func IsRemoteException ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithAdapter ¶
type ErrResponse ¶
type HandlerFunc ¶
func (HandlerFunc) ServeRPC ¶
func (h HandlerFunc) ServeRPC(r Request) (interface{}, error)
type Options ¶
type Options struct { Prefix string RequestExpire, ResultExpire, ResponseTimeout, BLPOPTimeout time.Duration TimeSource func() time.Time }
func OptsWithDefaults ¶
type RPCTimeout ¶
type RPCTimeout struct {
// contains filtered or unexported fields
}
func (*RPCTimeout) Error ¶
func (e *RPCTimeout) Error() string
type RedisAdapter ¶
type RedisAdapter struct {
// contains filtered or unexported fields
}
type RemoteException ¶
type RemoteException struct {
// contains filtered or unexported fields
}
func (*RemoteException) Error ¶
func (e *RemoteException) Error() string
type RequestImpl ¶
type RequestImpl struct { Id string `json:"id"` Ts string `json:"ts"` Kw map[string]interface{} `json:"kw"` }
func (RequestImpl) GetString ¶
func (r RequestImpl) GetString(k string) string
func (RequestImpl) GetValue ¶
func (r RequestImpl) GetValue(k string) interface{}
type ResResponse ¶
type ResResponse struct { Ts string `json:"ts"` Res interface{} `json:"res"` }
Click to show internal directories.
Click to hide internal directories.