server-go/web/server-handler.go
crusader ac4646131b ing
2018-04-06 20:47:32 +09:00

27 lines
426 B
Go

package web
import (
"git.loafle.net/commons/server-go"
)
type ServerHandler interface {
server.ServerHandler
server.ReadWriteHandler
}
type ServerHandlers struct {
server.ServerHandlers
server.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
}