Files
zeekay 8f5d0b9333 rebrand: rename weed→s3, strip all SeaweedFS/weed branding → Hanzo S3
Full internal rename — build-verified, every module green (root + s3-rdma-sidecar
+ telemetry/server + all test modules):
- Dirs: weed/→s3/ (main tree); cmd/weed-{db,sql}→cmd/s3-{db,sql};
  seaweed-volume→s3-volume; seaweedfs-rdma-sidecar→s3-rdma-sidecar;
  s3/mount/weedfs_*.go→s3fs_*.go (~113 path renames).
- Imports: github.com/hanzoai/s3/weed/ → /s3/ across 1700+ files.
- gRPC proto services Seaweed/SeaweedFiler/SeaweedMessaging/... → Hanzo*
  (8 services) via full protoc regeneration (correct descriptors, no sed-corruption).
- Brand SeaweedFS/Seaweed/seaweed → Hanzo/hanzo; internal X-Seaweedfs-* headers
  → X-Hanzo-*; .seaweedfs config dir → .s3.
- CLI is `s3`: go install github.com/hanzoai/s3/s3@latest | make install | Docker.
  install.sh rewritten as a Hanzo S3 installer.
- External forks github.com/seaweedfs/{raft,go-fuse,goexif,cockroachdb-parser}
  kept verbatim — immutable third-party module paths; NOTICE retained.

Residual (cosmetic, non-build): kafka loadtest test-proto package com.seaweedfs.loadtest.
2026-06-21 19:58:27 -07:00

59 lines
1.5 KiB
Go

package schema
// GetAvroSchema returns the Avro schema for load test messages
func GetAvroSchema() string {
return `{
"type": "record",
"name": "LoadTestMessage",
"namespace": "com.s3.loadtest",
"fields": [
{"name": "id", "type": "string"},
{"name": "timestamp", "type": "long"},
{"name": "producer_id", "type": "int"},
{"name": "counter", "type": "long"},
{"name": "user_id", "type": "string"},
{"name": "event_type", "type": "string"},
{"name": "properties", "type": {"type": "map", "values": "string"}}
]
}`
}
// GetJSONSchema returns the JSON Schema for load test messages
func GetJSONSchema() string {
return `{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LoadTestMessage",
"type": "object",
"properties": {
"id": {"type": "string"},
"timestamp": {"type": "integer"},
"producer_id": {"type": "integer"},
"counter": {"type": "integer"},
"user_id": {"type": "string"},
"event_type": {"type": "string"},
"properties": {
"type": "object",
"additionalProperties": {"type": "string"}
}
},
"required": ["id", "timestamp", "producer_id", "counter", "user_id", "event_type"]
}`
}
// GetProtobufSchema returns the Protobuf schema for load test messages
func GetProtobufSchema() string {
return `syntax = "proto3";
package com.s3.loadtest;
message LoadTestMessage {
string id = 1;
int64 timestamp = 2;
int32 producer_id = 3;
int64 counter = 4;
string user_id = 5;
string event_type = 6;
map<string, string> properties = 7;
}`
}