2018-07-07 16:10:42 +00:00
|
|
|
package aicra
|
2018-05-21 10:02:24 +00:00
|
|
|
|
|
|
|
import (
|
2018-07-08 22:08:53 +00:00
|
|
|
"git.xdrm.io/go/aicra/internal/checker"
|
|
|
|
"git.xdrm.io/go/aicra/internal/config"
|
2018-07-07 20:10:56 +00:00
|
|
|
"git.xdrm.io/go/aicra/middleware"
|
2018-05-21 10:02:24 +00:00
|
|
|
)
|
|
|
|
|
2018-07-08 23:00:45 +00:00
|
|
|
// Server represents an AICRA instance featuring:
|
|
|
|
// * its type checkers
|
|
|
|
// * its middlewares
|
|
|
|
// * its configuration (controllers)
|
2018-05-21 10:02:24 +00:00
|
|
|
type Server struct {
|
2018-07-07 20:10:56 +00:00
|
|
|
config *config.Controller
|
|
|
|
Params map[string]interface{}
|
|
|
|
Checker *checker.TypeRegistry // type check
|
|
|
|
Middleware *middleware.MiddlewareRegistry // middlewares
|
2018-05-21 10:02:24 +00:00
|
|
|
}
|