summaryrefslogtreecommitdiff
path: root/config.proto
blob: 19e8481701367aafc9de6e6f770acadd7cdef26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2025 WIT.COM Inc Licensed GPL 3.0

syntax = "proto3";

package config;

import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

message Config {                             //
        string            key          = 1;  // config key name `autogenpb:unique` `autogenpb:sort`
        string            value        = 2;  // config value name
        bool              global       = 3;  // was defined in application OS settings
        string            help         = 4;  // text for explaining the ENV key/value
}

message Configs {                            // `autogenpb:marshal` `autogenpb:nomutex`
        string            uuid         = 1;  // `autogenpb:uuid:3135d0f9-82a9-40b6-8aa1-b683ebe7bedd`
        string            version      = 2;  // `autogenpb:version:v0.0.2 go.wit.com/lib/config`
        repeated Config   configs      = 3;
        string            filename     = 4;  // can store where the filename is so that saves can be automated
}