ing
This commit is contained in:
parent
2538faaba7
commit
1dfb55b4ba
|
@ -3,13 +3,13 @@ package config
|
|||
import (
|
||||
"crypto/rsa"
|
||||
|
||||
occe "git.loafle.net/overflow/commons-go/config/external"
|
||||
ocec "git.loafle.net/overflow/commons-go/external/config"
|
||||
ogrs "git.loafle.net/overflow/gateway_rest/server"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
ServerHandler *ogrs.ServerHandlers `json:"serverHandler"`
|
||||
External *occe.External `json:"external"`
|
||||
External *ocec.External `json:"external"`
|
||||
|
||||
VerifyKey *rsa.PublicKey
|
||||
SignKey *rsa.PrivateKey
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
cdr "git.loafle.net/commons/di-go/registry"
|
||||
"git.loafle.net/commons/logging-go"
|
||||
cswf "git.loafle.net/commons/server-go/web/fasthttp"
|
||||
oca "git.loafle.net/overflow/commons-go/annotation"
|
||||
occa "git.loafle.net/overflow/commons-go/core/annotation"
|
||||
"git.loafle.net/overflow/member_gateway_rest/config"
|
||||
"git.loafle.net/overflow/member_gateway_rest/servlet"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ func NewServer(_config *config.Config) *cswf.Server {
|
|||
cdr.RegisterResource("VerifyKey", _config.VerifyKey)
|
||||
cdr.RegisterResource("SignKey", _config.SignKey)
|
||||
|
||||
services, err := cdr.GetInstancesByAnnotationType(oca.RESTServiceAnnotationType)
|
||||
services, err := cdr.GetInstancesByAnnotationType(occa.RESTServiceAnnotationType)
|
||||
if nil != err {
|
||||
logging.Logger().Panic(err)
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
cdr "git.loafle.net/commons/di-go/registry"
|
||||
"git.loafle.net/commons/logging-go"
|
||||
"git.loafle.net/commons/server-go"
|
||||
_ "git.loafle.net/overflow/commons-go/annotation"
|
||||
_ "git.loafle.net/overflow/commons-go/core/annotation"
|
||||
"git.loafle.net/overflow/gateway/external/grpc"
|
||||
"github.com/valyala/fasthttp"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user