server/pkg/loafer/web/annotation/rest-handler.go
2019-11-13 23:21:05 +09:00

22 lines
395 B
Go

package annotation
import (
"reflect"
"git.loafle.net/loafer/annotation-go"
)
var RestHandlerAnnotationType = reflect.TypeOf((*RestHandlerAnnotation)(nil))
func init() {
if err := annotation.Register(RestHandlerAnnotationType); nil != err {
panic(err)
}
}
type RestHandlerAnnotation struct {
annotation.TypeAnnotation `@annotation:"@web:RestHandler"`
Entry string `json:"entry"`
}