server-go/web/server-handler.go
crusader 7e7d6258c0 ing
2018-04-06 00:15:29 +09:00

27 lines
429 B
Go

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