Skip to content

Commit

Permalink
feat(config): add websocket configuration proto
Browse files Browse the repository at this point in the history
- Create websocket.proto file in third_party/config/v1/
- Define WebSocket message structure for WebSocket server configuration
- Include network, address, path, codec, and timeout settings
  • Loading branch information
godcong committed Nov 15, 2024
1 parent a204bfe commit 40ed9c8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions third_party/config/v1/websocket.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";

package config.v1;

import "google/protobuf/duration.proto";

option cc_enable_arenas = true;
option go_package = "github.com/origadmin/toolkits/runtime/gen/go/config/v1;configv1";
option java_multiple_files = true;
option java_outer_classname = "CorsProto";
option java_package = "com.github.origadmin.toolkits.runtime.config";
option objc_class_prefix = "Config";

message WebSocket {
string network = 1 [json_name = "network"];
string addr = 2 [json_name = "addr"];
string path = 3 [json_name = "path"];
string codec = 4 [json_name = "codec"];
google.protobuf.Duration timeout = 5 [json_name = "timeout"];
}

0 comments on commit 40ed9c8

Please sign in to comment.