Skip to content

Commit

Permalink
Merge pull request #11 from pilksoc/cache
Browse files Browse the repository at this point in the history
Added the base server and ting for caching of the openAI stuff
  • Loading branch information
ZanyLeonic authored Mar 2, 2024
2 parents b157e59 + cfcf942 commit c5c5e8f
Show file tree
Hide file tree
Showing 16 changed files with 371 additions and 143 deletions.
22 changes: 0 additions & 22 deletions backend/src/cache.rs

This file was deleted.

20 changes: 0 additions & 20 deletions backend/src/cache_test.rs

This file was deleted.

4 changes: 4 additions & 0 deletions backend/src/kube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ impl KubeId {
pub fn as_u128(&self) -> u128 {
self.uuid.as_u128()
}

pub fn uuid(&self) -> Uuid {
self.uuid
}
}

#[derive(PartialEq, Debug)]
Expand Down
1 change: 0 additions & 1 deletion backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ pub mod space;
pub mod kube;
pub mod player;
pub mod llm;
pub mod cache;

type Coordinate = [u64; 2];
33 changes: 0 additions & 33 deletions backend/src/schema.rs

This file was deleted.

2 changes: 2 additions & 0 deletions kube_cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kube_cache
.env
63 changes: 63 additions & 0 deletions kube_cache/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module github.com/CosmicKube/kube_cache

go 1.22.0

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bytedance/sonic v1.10.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/cors v1.5.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.9.1 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.15.5 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.4.3 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/swaggo/gin-swagger v1.6.0 // indirect
github.com/swaggo/swag v1.8.12 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/zsais/go-gin-prometheus v0.1.0 // indirect
golang.org/x/arch v0.5.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.7.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/postgres v1.5.6 // indirect
gorm.io/gorm v1.25.7 // indirect
)
Loading

0 comments on commit c5c5e8f

Please sign in to comment.