Skip to content

Commit

Permalink
proto
Browse files Browse the repository at this point in the history
  • Loading branch information
LikDan committed Mar 8, 2024
1 parent 44ee555 commit 381bf92
Show file tree
Hide file tree
Showing 12 changed files with 536 additions and 719 deletions.
16 changes: 6 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ go 1.22rc2

require (
github.com/gin-gonic/gin v1.9.1
github.com/gocql/gocql v1.6.0
github.com/jackc/pgx/v5 v5.5.3
github.com/google/uuid v1.4.0
github.com/mwitkow/grpc-proxy v0.0.0-20230212185441-f345521cb9c9
github.com/sirupsen/logrus v1.9.3
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.32.0
google.golang.org/protobuf v1.33.0
)

require (
Expand All @@ -20,14 +20,10 @@ require (
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -42,6 +38,6 @@ require (
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
145 changes: 120 additions & 25 deletions go.sum

Large diffs are not rendered by default.

80 changes: 0 additions & 80 deletions http/proxy/proxy.go

This file was deleted.

14 changes: 14 additions & 0 deletions models/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ import (
"github.com/google/uuid"
)

type TypesIds struct {
GroupsIds []uuid.UUID
RoomsIds []uuid.UUID
SubjectsIds []uuid.UUID
TeachersIds []uuid.UUID
}

type TypesModels struct {
GroupsIds map[uuid.UUID]Group
RoomsIds map[uuid.UUID]Room
SubjectsIds map[uuid.UUID]Subject
TeachersIds map[uuid.UUID]Teacher
}

type Group struct {
ID uuid.UUID
Name string
Expand Down
Loading

0 comments on commit 381bf92

Please sign in to comment.