2017-11-29 09:55:24 +00:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2018-03-22 13:35:08 +00:00
|
|
|
"sync"
|
2017-11-29 09:55:24 +00:00
|
|
|
|
|
|
|
"git.loafle.net/commons_go/rpc/protocol"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ServletReadWriteCloseHandlers struct {
|
2018-03-22 13:35:08 +00:00
|
|
|
ReadMtx sync.RWMutex
|
|
|
|
WriteMtx sync.RWMutex
|
2017-11-29 09:55:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (srwch *ServletReadWriteCloseHandlers) ReadRequest(servletCTX ServletContext, codec protocol.ServerCodec, conn interface{}) (protocol.ServerRequestCodec, error) {
|
|
|
|
return nil, fmt.Errorf("Servlet RWC Handler: ReadRequest is not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (srwch *ServletReadWriteCloseHandlers) WriteResponse(servletCTX ServletContext, conn interface{}, requestCodec protocol.ServerRequestCodec, result interface{}, err error) error {
|
|
|
|
return fmt.Errorf("Servlet RWC Handler: WriteResponse is not implemented")
|
|
|
|
}
|
|
|
|
|
2018-03-20 06:31:54 +00:00
|
|
|
func (srwch *ServletReadWriteCloseHandlers) WriteNotification(servletCTX ServletContext, conn interface{}, codec protocol.ServerCodec, method string, params []interface{}) error {
|
2017-11-29 09:55:24 +00:00
|
|
|
return fmt.Errorf("Servlet RWC Handler: WriteNotification is not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (srwch *ServletReadWriteCloseHandlers) Validate() {
|
|
|
|
|
|
|
|
}
|