This commit is contained in:
crusader 2018-04-12 19:08:01 +09:00
parent 2538faaba7
commit 1dfb55b4ba
3 changed files with 5 additions and 5 deletions

View File

@ -3,13 +3,13 @@ package config
import ( import (
"crypto/rsa" "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" ogrs "git.loafle.net/overflow/gateway_rest/server"
) )
type Config struct { type Config struct {
ServerHandler *ogrs.ServerHandlers `json:"serverHandler"` ServerHandler *ogrs.ServerHandlers `json:"serverHandler"`
External *occe.External `json:"external"` External *ocec.External `json:"external"`
VerifyKey *rsa.PublicKey VerifyKey *rsa.PublicKey
SignKey *rsa.PrivateKey SignKey *rsa.PrivateKey

View File

@ -4,7 +4,7 @@ import (
cdr "git.loafle.net/commons/di-go/registry" cdr "git.loafle.net/commons/di-go/registry"
"git.loafle.net/commons/logging-go" "git.loafle.net/commons/logging-go"
cswf "git.loafle.net/commons/server-go/web/fasthttp" 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/config"
"git.loafle.net/overflow/member_gateway_rest/servlet" "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("VerifyKey", _config.VerifyKey)
cdr.RegisterResource("SignKey", _config.SignKey) cdr.RegisterResource("SignKey", _config.SignKey)
services, err := cdr.GetInstancesByAnnotationType(oca.RESTServiceAnnotationType) services, err := cdr.GetInstancesByAnnotationType(occa.RESTServiceAnnotationType)
if nil != err { if nil != err {
logging.Logger().Panic(err) logging.Logger().Panic(err)
} }

View File

@ -12,7 +12,7 @@ import (
cdr "git.loafle.net/commons/di-go/registry" cdr "git.loafle.net/commons/di-go/registry"
"git.loafle.net/commons/logging-go" "git.loafle.net/commons/logging-go"
"git.loafle.net/commons/server-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" "git.loafle.net/overflow/gateway/external/grpc"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"