diff options
author | Alan Pearce | 2024-05-04 12:54:31 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-04 14:51:00 +0200 |
commit | 5b9e67fd5129dec75169a1a070c70f910dff6da2 (patch) | |
tree | 73a4656b60387556462e7d5384cac0919bc1da66 /internal/server/option.go | |
parent | a2c97c10ee0a01277c51f85b15bdf8ee821f96db (diff) | |
download | searchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.tar.lz searchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.tar.zst searchix-5b9e67fd5129dec75169a1a070c70f910dff6da2.zip |
feat: frontend search implementation
Diffstat (limited to 'internal/server/option.go')
-rw-r--r-- | internal/server/option.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/server/option.go b/internal/server/option.go new file mode 100644 index 0000000..be42689 --- /dev/null +++ b/internal/server/option.go @@ -0,0 +1,15 @@ +package server + +type NixValue struct { + Kind string `json:"_type"` + Value string `json:"text"` +} + +type Option struct { + Declarations []string + Default NixValue + Description string + Example NixValue + ReadOnly bool + Kind string `json:"type"` +} |