Skip to content

Commit

Permalink
restructure code
Browse files Browse the repository at this point in the history
  • Loading branch information
janishar committed Jun 30, 2024
1 parent 02382ce commit 3f4ee6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/micro/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions arch/micro/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f4ee6c

Please sign in to comment.