ing
This commit is contained in:
parent
13d627dd6a
commit
1edc7cb582
|
@ -23,10 +23,6 @@ type ClientNotificationCodec struct {
|
||||||
noti *clientNotification
|
noti *clientNotification
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cnc *ClientNotificationCodec) HasResponse() bool {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (cnc *ClientNotificationCodec) Method() string {
|
func (cnc *ClientNotificationCodec) Method() string {
|
||||||
return cnc.noti.Method
|
return cnc.noti.Method
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,4 @@ type RegistryCodec interface {
|
||||||
// Reads the request filling the RPC method args.
|
// Reads the request filling the RPC method args.
|
||||||
ReadParams(args []interface{}) error
|
ReadParams(args []interface{}) error
|
||||||
Params() ([]string, error)
|
Params() ([]string, error)
|
||||||
|
|
||||||
HasResponse() bool
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,6 @@ type ServerCodec interface {
|
||||||
type ServerRequestCodec interface {
|
type ServerRequestCodec interface {
|
||||||
RegistryCodec
|
RegistryCodec
|
||||||
|
|
||||||
|
HasResponse() bool
|
||||||
NewResponse(reply interface{}, err error) ([]byte, error)
|
NewResponse(reply interface{}, err error) ([]byte, error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user