This commit is contained in:
crusader 2018-04-05 13:54:34 +09:00
parent 13d627dd6a
commit 1edc7cb582
3 changed files with 1 additions and 6 deletions

View File

@ -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
} }

View File

@ -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
} }

View File

@ -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)
} }