server/pkg/loafer/app/annotation/server.go

24 lines
548 B
Go
Raw Normal View History

2019-11-11 15:00:04 +00:00
package annotation
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
var ServerAnnotationType = reflect.TypeOf((*ServerAnnotation)(nil))
func init() {
cda.RegisterAnnotation(ServerAnnotationType)
}
type ServerAnnotation struct {
cda.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"`
}