Project scaffold and general layout. Monorepo.
This commit is contained in:
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
### Example user template template
|
||||
### Example user template
|
||||
|
||||
# IntelliJ project files
|
||||
.idea
|
||||
*.iml
|
||||
out
|
||||
gen
|
||||
7
go.work
Normal file
7
go.work
Normal file
@@ -0,0 +1,7 @@
|
||||
go 1.24.2
|
||||
|
||||
use (
|
||||
./pkg
|
||||
./services/marketdata
|
||||
./services/orchestrator
|
||||
)
|
||||
3
pkg/go.mod
Normal file
3
pkg/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module gitlab.michelsen.id/phillmichelsen/tessera/pkg
|
||||
|
||||
go 1.24.2
|
||||
0
pkg/pb/marketdata/marketdata.proto
Normal file
0
pkg/pb/marketdata/marketdata.proto
Normal file
1
services/marketdata/cmd/main.go
Normal file
1
services/marketdata/cmd/main.go
Normal file
@@ -0,0 +1 @@
|
||||
package cmd
|
||||
3
services/marketdata/go.mod
Normal file
3
services/marketdata/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module gitlab.michelsen.id/phillmichelsen/tessera/services/marketdata
|
||||
|
||||
go 1.24.2
|
||||
1
services/marketdata/internal/config/config.go
Normal file
1
services/marketdata/internal/config/config.go
Normal file
@@ -0,0 +1 @@
|
||||
package config
|
||||
7
services/marketdata/internal/identifier/identifier.go
Normal file
7
services/marketdata/internal/identifier/identifier.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package identifier
|
||||
|
||||
type Identifier struct {
|
||||
Source string
|
||||
Subject string
|
||||
Type string
|
||||
}
|
||||
1
services/marketdata/internal/manager/manager.go
Normal file
1
services/marketdata/internal/manager/manager.go
Normal file
@@ -0,0 +1 @@
|
||||
package manager
|
||||
@@ -0,0 +1 @@
|
||||
package binance
|
||||
@@ -0,0 +1 @@
|
||||
package binance
|
||||
@@ -0,0 +1 @@
|
||||
package binance
|
||||
13
services/marketdata/internal/providers/interface.go
Normal file
13
services/marketdata/internal/providers/interface.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package providers
|
||||
|
||||
import (
|
||||
"gitlab.michelsen.id/phillmichelsen/tessera/services/marketdata/internal/identifier"
|
||||
)
|
||||
|
||||
type Provider interface {
|
||||
Start() error
|
||||
Stop() error
|
||||
Subscribe(identifier identifier.Identifier, channel chan<- any) error
|
||||
Unsubscribe(identifier identifier.Identifier)
|
||||
Fetch(identifier identifier.Identifier) (any, error)
|
||||
}
|
||||
1
services/marketdata/internal/router/router.go
Normal file
1
services/marketdata/internal/router/router.go
Normal file
@@ -0,0 +1 @@
|
||||
package router
|
||||
1
services/marketdata/internal/transport/grpc/server.go
Normal file
1
services/marketdata/internal/transport/grpc/server.go
Normal file
@@ -0,0 +1 @@
|
||||
package grpc
|
||||
1
services/orchestrator/cmd/main.go
Normal file
1
services/orchestrator/cmd/main.go
Normal file
@@ -0,0 +1 @@
|
||||
package cmd
|
||||
3
services/orchestrator/go.mod
Normal file
3
services/orchestrator/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module gitlab.michelsen.id/phillmichelsen/tessera/services/orchestrator
|
||||
|
||||
go 1.24.2
|
||||
1
services/orchestrator/service.go
Normal file
1
services/orchestrator/service.go
Normal file
@@ -0,0 +1 @@
|
||||
package marketdata
|
||||
1
services/portfolio/cmd/main.go
Normal file
1
services/portfolio/cmd/main.go
Normal file
@@ -0,0 +1 @@
|
||||
package cmd
|
||||
1
services/portfolio/service.go
Normal file
1
services/portfolio/service.go
Normal file
@@ -0,0 +1 @@
|
||||
package marketdata
|
||||
1
services/strategies/strategy1/cmd/main.go
Normal file
1
services/strategies/strategy1/cmd/main.go
Normal file
@@ -0,0 +1 @@
|
||||
package cmd
|
||||
1
services/strategies/strategy1/service.go
Normal file
1
services/strategies/strategy1/service.go
Normal file
@@ -0,0 +1 @@
|
||||
package marketdata
|
||||
Reference in New Issue
Block a user