server-go/socket/server-handler.go

27 lines
415 B
Go
Raw Normal View History

2018-04-05 15:15:29 +00:00
package socket
import (
"git.loafle.net/commons/server-go"
)
type ServerHandler interface {
server.ServerHandler
ReadWriteHandler
}
type ServerHandlers struct {
server.ServerHandlers
ReadWriteHandlers
}
func (sh *ServerHandlers) Validate() error {
if err := sh.ServerHandlers.Validate(); nil != err {
return err
}
if err := sh.ReadWriteHandlers.Validate(); nil != err {
return err
}
return nil
}