server/pkg/loafer/web/annotation/rest-handler.go

22 lines
395 B
Go
Raw Normal View History

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