Notes added by 'git notes append'

This commit is contained in:
Jeff Carr 2025-01-31 13:56:29 -06:00
parent ef86b59161
commit b5a118ffd4
1 changed files with 503 additions and 0 deletions

View File

@ -118,3 +118,506 @@ func (v *Views) Unmarshal(data []byte) error {
}
// `autogen:view.pb.go`
// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.
//
// user defined Mutex locks were auto added
//
// autogenpb version & build time: v0.0.48 2025-01-28_20:32:42_UTC
// autogenpb auto generates Sort(), Unique() and Marshal() functions
// go install go.wit.com/apps/autogenpb@latest
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.2-devel
// protoc v3.21.12
// source: view.proto
package main // autogenpb changed the package name
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// maybe put all the gocui specific stuff here.
type GocuiState struct {
// sync.RWMutex // skipped. protobuf file has `autogenpb:nomutex`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Visible bool `protobuf:"varint,1,opt,name=visible,proto3" json:"visible,omitempty"`
Internal bool `protobuf:"varint,2,opt,name=internal,proto3" json:"internal,omitempty"`
W0 int64 `protobuf:"varint,3,opt,name=w0,proto3" json:"w0,omitempty"`
H0 int64 `protobuf:"varint,4,opt,name=h0,proto3" json:"h0,omitempty"`
W1 int64 `protobuf:"varint,5,opt,name=w1,proto3" json:"w1,omitempty"`
H1 int64 `protobuf:"varint,6,opt,name=h1,proto3" json:"h1,omitempty"`
}
func (x *GocuiState) Reset() {
*x = GocuiState{}
mi := &file_view_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GocuiState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GocuiState) ProtoMessage() {}
func (x *GocuiState) ProtoReflect() protoreflect.Message {
mi := &file_view_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GocuiState.ProtoReflect.Descriptor instead.
func (*GocuiState) Descriptor() ([]byte, []int) {
return file_view_proto_rawDescGZIP(), []int{0}
}
func (x *GocuiState) GetVisible() bool {
if x != nil {
return x.Visible
}
return false
}
func (x *GocuiState) GetInternal() bool {
if x != nil {
return x.Internal
}
return false
}
func (x *GocuiState) GetW0() int64 {
if x != nil {
return x.W0
}
return 0
}
func (x *GocuiState) GetH0() int64 {
if x != nil {
return x.H0
}
return 0
}
func (x *GocuiState) GetW1() int64 {
if x != nil {
return x.W1
}
return 0
}
func (x *GocuiState) GetH1() int64 {
if x != nil {
return x.H1
}
return 0
}
type ViewSettings struct {
// sync.RWMutex // skipped. protobuf file has `autogenpb:nomutex`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pack bool `protobuf:"varint,1,opt,name=pack,proto3" json:"pack,omitempty"`
Framesize int64 `protobuf:"varint,5,opt,name=framesize,proto3" json:"framesize,omitempty"`
}
func (x *ViewSettings) Reset() {
*x = ViewSettings{}
mi := &file_view_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ViewSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ViewSettings) ProtoMessage() {}
func (x *ViewSettings) ProtoReflect() protoreflect.Message {
mi := &file_view_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ViewSettings.ProtoReflect.Descriptor instead.
func (*ViewSettings) Descriptor() ([]byte, []int) {
return file_view_proto_rawDescGZIP(), []int{1}
}
func (x *ViewSettings) GetPack() bool {
if x != nil {
return x.Pack
}
return false
}
func (x *ViewSettings) GetFramesize() int64 {
if x != nil {
return x.Framesize
}
return 0
}
type Tree struct {
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Parent *View `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
Children []*View `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
Node *View `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"`
}
func (x *Tree) Reset() {
*x = Tree{}
mi := &file_view_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Tree) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Tree) ProtoMessage() {}
func (x *Tree) ProtoReflect() protoreflect.Message {
mi := &file_view_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Tree.ProtoReflect.Descriptor instead.
func (*Tree) Descriptor() ([]byte, []int) {
return file_view_proto_rawDescGZIP(), []int{2}
}
func (x *Tree) GetParent() *View {
if x != nil {
return x.Parent
}
return nil
}
func (x *Tree) GetChildren() []*View {
if x != nil {
return x.Children
}
return nil
}
func (x *Tree) GetNode() *View {
if x != nil {
return x.Node
}
return nil
}
// this is the gocui 'view' in binary tree form
type View struct {
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WidgetId int64 `protobuf:"varint,3,opt,name=widgetId,proto3" json:"widgetId,omitempty"` // `autogenpb:unique` `autogenpb:sort`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // `autogenpb:unique` `autogenpb:sort`
State *GocuiState `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"`
}
func (x *View) Reset() {
*x = View{}
mi := &file_view_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *View) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*View) ProtoMessage() {}
func (x *View) ProtoReflect() protoreflect.Message {
mi := &file_view_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use View.ProtoReflect.Descriptor instead.
func (*View) Descriptor() ([]byte, []int) {
return file_view_proto_rawDescGZIP(), []int{3}
}
func (x *View) GetWidgetId() int64 {
if x != nil {
return x.WidgetId
}
return 0
}
func (x *View) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *View) GetState() *GocuiState {
if x != nil {
return x.State
}
return nil
}
type Views struct {
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:d19c1fbb-32c2-4957-aee6-f8128a511dca`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
Views []*View `protobuf:"bytes,3,rep,name=Views,proto3" json:"Views,omitempty"`
Tree *Tree `protobuf:"bytes,4,opt,name=tree,proto3" json:"tree,omitempty"`
Junk map[string]string `protobuf:"bytes,5,rep,name=junk,proto3" json:"junk,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Settings *ViewSettings `protobuf:"bytes,6,opt,name=settings,proto3" json:"settings,omitempty"`
}
func (x *Views) Reset() {
*x = Views{}
mi := &file_view_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Views) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Views) ProtoMessage() {}
func (x *Views) ProtoReflect() protoreflect.Message {
mi := &file_view_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Views.ProtoReflect.Descriptor instead.
func (*Views) Descriptor() ([]byte, []int) {
return file_view_proto_rawDescGZIP(), []int{4}
}
func (x *Views) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Views) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *Views) GetViews() []*View {
if x != nil {
return x.Views
}
return nil
}
func (x *Views) GetTree() *Tree {
if x != nil {
return x.Tree
}
return nil
}
func (x *Views) GetJunk() map[string]string {
if x != nil {
return x.Junk
}
return nil
}
func (x *Views) GetSettings() *ViewSettings {
if x != nil {
return x.Settings
}
return nil
}
var File_view_proto protoreflect.FileDescriptor
var file_view_proto_rawDesc = []byte{
0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61,
0x69, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x0a, 0x47, 0x6f, 0x63, 0x75, 0x69, 0x53, 0x74, 0x61,
0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x77, 0x30, 0x18, 0x03,
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x77, 0x30, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x30, 0x18, 0x04,
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x30, 0x12, 0x0e, 0x0a, 0x02, 0x77, 0x31, 0x18, 0x05,
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x77, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x31, 0x18, 0x06,
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x31, 0x22, 0x40, 0x0a, 0x0c, 0x56, 0x69, 0x65, 0x77,
0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x63, 0x6b,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09,
0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x72, 0x0a, 0x04, 0x54, 0x72,
0x65, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e,
0x56, 0x69, 0x65, 0x77, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x1e,
0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d,
0x61, 0x69, 0x6e, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x5e,
0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74,
0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74,
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,
0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x47, 0x6f, 0x63,
0x75, 0x69, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8b,
0x02, 0x0a, 0x05, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x05, 0x56, 0x69, 0x65, 0x77, 0x73, 0x18,
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x69, 0x65,
0x77, 0x52, 0x05, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x1e, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72,
0x65, 0x65, 0x52, 0x04, 0x74, 0x72, 0x65, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x6a, 0x75, 0x6e, 0x6b,
0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x69,
0x65, 0x77, 0x73, 0x2e, 0x4a, 0x75, 0x6e, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6a,
0x75, 0x6e, 0x6b, 0x12, 0x2e, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x69, 0x65,
0x77, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4a, 0x75, 0x6e, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_view_proto_rawDescOnce sync.Once
file_view_proto_rawDescData = file_view_proto_rawDesc
)
func file_view_proto_rawDescGZIP() []byte {
file_view_proto_rawDescOnce.Do(func() {
file_view_proto_rawDescData = protoimpl.X.CompressGZIP(file_view_proto_rawDescData)
})
return file_view_proto_rawDescData
}
var file_view_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_view_proto_goTypes = []any{
(*GocuiState)(nil), // 0: main.GocuiState
(*ViewSettings)(nil), // 1: main.ViewSettings
(*Tree)(nil), // 2: main.Tree
(*View)(nil), // 3: main.View
(*Views)(nil), // 4: main.Views
nil, // 5: main.Views.JunkEntry
}
var file_view_proto_depIdxs = []int32{
3, // 0: main.Tree.parent:type_name -> main.View
3, // 1: main.Tree.children:type_name -> main.View
3, // 2: main.Tree.node:type_name -> main.View
0, // 3: main.View.state:type_name -> main.GocuiState
3, // 4: main.Views.Views:type_name -> main.View
2, // 5: main.Views.tree:type_name -> main.Tree
5, // 6: main.Views.junk:type_name -> main.Views.JunkEntry
1, // 7: main.Views.settings:type_name -> main.ViewSettings
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_view_proto_init() }
func file_view_proto_init() {
if File_view_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_view_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_view_proto_goTypes,
DependencyIndexes: file_view_proto_depIdxs,
MessageInfos: file_view_proto_msgTypes,
}.Build()
File_view_proto = out.File
file_view_proto_rawDesc = nil
file_view_proto_goTypes = nil
file_view_proto_depIdxs = nil
}