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

26 lines
584 B
Go

package annotation
import (
"reflect"
"git.loafle.net/loafer/annotation-go"
)
var ServerAnnotationType = reflect.TypeOf((*ServerAnnotation)(nil))
func init() {
if err := annotation.Register(ServerAnnotationType); nil != err {
panic(err)
}
}
type ServerAnnotation struct {
annotation.TypeAnnotation `@annotation:"@app:Server"`
RootDir string `json:"rootDir"`
Mount map[string][]string `json:"mount"`
UploadDir string `json:"uploadDir"`
HTTPPort int16 `json:"httpPort"`
HTTPSPort int16 `json:"httpsPort"`
}