Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions cmd/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ func main() {
}
}

domain := os.Getenv("O5_E2E_DOMAIN")
apiRoot := os.Getenv("O5_API")
if apiRoot == "" {
fmt.Println("O5_API is not set")
os.Exit(1)
}

cfg := &universe.APIConfig{
APIRoot: fmt.Sprintf("https://o5.%s", domain),
MetaRoot: fmt.Sprintf("https://o5.%s", domain),
APIRoot: apiRoot,
MetaRoot: apiRoot,
BearerToken: os.Getenv("O5_BEARER"),
}

Expand All @@ -48,8 +53,8 @@ func loadEnv(filename string) error {
return err
}

lines := strings.Split(string(fileData), "\n")
for _, line := range lines {
lines := strings.SplitSeq(string(fileData), "\n")
for line := range lines {
if strings.HasPrefix(line, "#") {
continue
}
Expand Down
12 changes: 12 additions & 0 deletions ext/db/00003_message.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- +goose Up

CREATE TABLE greeting_message (
greeting_id uuid NOT NULL,
event_id uuid NOT NULL,
message_id uuid NOT NULL,
timestamp timestamptz NOT NULL DEFAULT now()
);

-- +goose Down

DROP TABLE greeting_message;
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ toolchain go1.24.1

require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250307204501-0409229c3780.1
github.com/elgris/sqrl v0.0.0-20210727210741-7e0198b30236
github.com/google/uuid v1.6.0
github.com/pentops/flowtest v0.0.0-20250403234635-311159fa1e81
github.com/pentops/golib v0.0.0-20250326060930-8c83d58ddb63
github.com/pentops/grpc.go v0.0.0-20250326042738-bcdfc2b43fa9
github.com/pentops/j5 v0.0.0-20250407052915-b2fc017d8ac2
github.com/pentops/log.go v0.0.15
Expand All @@ -27,7 +29,6 @@ require (
cel.dev/expr v0.22.0 // indirect
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/bufbuild/protovalidate-go v0.9.2 // indirect
github.com/elgris/sqrl v0.0.0-20210727210741-7e0198b30236 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/google/cel-go v0.24.1 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
Expand Down
195 changes: 195 additions & 0 deletions internal/gen/test/v1/test_pb/event_log.j5s.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions internal/gen/test/v1/test_pb/event_log.j5s_sugar.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading