diff --git a/arch/micro/interfaces.go b/arch/micro/interfaces.go index ec48cca..0f4cf20 100644 --- a/arch/micro/interfaces.go +++ b/arch/micro/interfaces.go @@ -9,12 +9,6 @@ type NatsGroup = micro.Group type NatsHandlerFunc = micro.HandlerFunc type NatsRequest = micro.Request -type Config struct { - NatsUrl string - NatsServiceName string - NatsServiceVersion string -} - type BaseController interface { network.BaseController SetNatsContext(ctx *NatsContext) diff --git a/arch/micro/nats.go b/arch/micro/nats.go index adee737..ad37628 100644 --- a/arch/micro/nats.go +++ b/arch/micro/nats.go @@ -8,6 +8,12 @@ import ( "github.com/nats-io/nats.go/micro" ) +type Config struct { + NatsUrl string + NatsServiceName string + NatsServiceVersion string +} + type NatsClient struct { Conn *nats.Conn Service micro.Service