Debian Codegraph @

proto/types/v1/localhost_config.proto

raw
1 syntax = "proto3";
2
3 package types.v1;
4
5 import "google/protobuf/struct.proto";
6
7 option go_package = "types/v1;typesv1";
8
9 message FormatConfig {
10 message Color {
11 string html_hex_color = 1;
12 }
13 message Style {
14 Color foreground = 1;
15 optional Color background = 2;
16 // ANSI text formatting
17 optional bool bold = 300;
18 optional bool italic = 301;
19 optional bool faint = 302;
20 optional bool blink = 303;
21 optional bool strikethrough = 304;
22 optional bool underline = 305;
23 }
24 message NullStyle {
25 Style style = 1;
26 string content = 2;
27 }
28 message LevelStyle {
29 Style debug = 100;
30 Style info = 200;
31 Style warn = 300;
32 Style error = 400;
33 Style panic = 500;
34 Style fatal = 600;
35 Style unknown = 700;
36 }
37 message Theme {
38 Style key = 1;
39 Style value = 2;
40 Style time = 3;
41 Style msg = 4;
42 LevelStyle levels = 5;
43 // how to style messages that are missing
44 Style absent_msg = 6;
45 Style absent_time = 7;
46 }
47
48 message Themes {
49 Theme light = 1;
50 Theme dark = 2;
51 }
52
53 message Truncation {
54 int64 length = 1;
55 }
56 message Time {
57 optional string format = 1;
58 optional string timezone = 2;
59 optional string absent_default_value = 3;
60 }
61 message Message {
62 optional string absent_default_value = 1;
63 }
64 enum ColorMode {
65 COLORMODE_AUTO = 0;
66 COLORMODE_ENABLED = 1;
67 COLORMODE_DISABLED = 2;
68 }
69
70 Themes themes = 1;
71 repeated string skip_fields = 2;
72 repeated string keep_fields = 3;
73 optional bool sort_longest = 4;
74 optional bool skip_unchanged = 5;
75 optional Truncation truncation = 6;
76 optional Time time = 7;
77 optional Message message = 8;
78 optional ColorMode terminal_color_mode = 9;
79 }
80
81 message ParseConfig {
82 message Time {
83 repeated string field_names = 1;
84 }
85 message Message {
86 repeated string field_names = 1;
87 }
88 message Level {
89 repeated string field_names = 1;
90 }
91 Time timestamp = 1;
92 Message message = 2;
93 Level level = 3;
94 }
95
96 message ServeLocalhostConfig {
97 int64 port = 1;
98 string engine = 2;
99 google.protobuf.Struct engine_config = 3;
100 optional bool show_in_systray = 4;
101 optional string log_dir = 5;
102 }
103
104 message RuntimeConfig {
105 message Features {}
106 message ExperimentalFeatures {
107 optional string release_channel = 1;
108 optional bool send_logs_to_cloud = 2;
109 optional ServeLocalhostConfig serve_localhost = 3;
110 }
111 message ClientConfig {
112 enum HTTPProtocol {
113 HTTP2 = 0;
114 HTTP1 = 1;
115 }
116 enum RPCProtocol {
117 GRPC = 0;
118 GRPC_WEB = 1;
119 PROTOJSON = 2;
120 }
121 optional HTTPProtocol http_protocol = 1;
122 optional RPCProtocol rpc_protocol = 2;
123 }
124 optional bool interrupt = 1;
125 optional bool skip_check_for_updates = 2;
126 Features features = 3;
127 ExperimentalFeatures experimental_features = 4;
128 ClientConfig api_client = 5;
129 }
130
131 message LocalhostConfig {
132 int64 version = 1;
133
134 FormatConfig formatter = 2;
135 ParseConfig parser = 3;
136 RuntimeConfig runtime = 4;
137 }