server-go/web/server-handler.go
crusader 5e21f27ef0 ing
2018-04-06 01:21:13 +09:00

32 lines
553 B
Go

package web
import (
"git.loafle.net/commons/server-go"
)
type ServerHandler interface {
server.ServerHandler
server.ConnectionHandler
server.ReadWriteHandler
}
type ServerHandlers struct {
server.ServerHandlers
server.ConnectionHandlers
server.ReadWriteHandlers
}
func (sh *ServerHandlers) Validate() error {
if err := sh.ServerHandlers.Validate(); nil != err {
return err
}
if err := sh.ConnectionHandlers.Validate(); nil != err {
return err
}
if err := sh.ReadWriteHandlers.Validate(); nil != err {
return err
}
return nil
}