Documentation
¶
Index ¶
- Variables
- func Init() bool
- func SanitizeProtoUTF8(msg proto.Message) error
- func ValidateProtoUTF8(msg proto.Message) error
- type Bug
- type BugScanner
- type Bugs
- func (x *Bugs) All() *BugScanner
- func (x *Bugs) Append(y *Bug)
- func (x *Bugs) Delete(y *Bug) bool
- func (*Bugs) Descriptor() ([]byte, []int)deprecated
- func (v *Bugs) FormatJSON() string
- func (v *Bugs) FormatTEXT() string
- func (x *Bugs) GetBugs() []*Bug
- func (x *Bugs) GetUuid() string
- func (x *Bugs) GetVersion() string
- func (x *Bugs) IterAll() iter.Seq[*Bug]
- func (x *Bugs) Len() int
- func (v *Bugs) Marshal() ([]byte, error)
- func (v *Bugs) MarshalJSON() ([]byte, error)
- func (*Bugs) ProtoMessage()
- func (x *Bugs) ProtoReflect() protoreflect.Message
- func (x *Bugs) Reset()
- func (x *Bugs) String() string
- func (v *Bugs) Unmarshal(data []byte) error
- func (v *Bugs) UnmarshalJSON(data []byte) error
- func (v *Bugs) UnmarshalTEXT(data []byte) error
- type BugsScanner
Constants ¶
This section is empty.
Variables ¶
View Source
var File_bug_proto protoreflect.FileDescriptor
Functions ¶
func SanitizeProtoUTF8 ¶ added in v0.0.5
SanitizeProtoUTF8 fixes all invalid UTF-8 strings in a proto.Message recursively.
func ValidateProtoUTF8 ¶ added in v0.0.5
ValidateProtoUTF8 checks all string fields in a proto.Message recursively.
Types ¶
type Bug ¶ added in v0.0.2
type Bug struct { sync.RWMutex // auto-added by go.wit.com/apps/autogenpb Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Bug) Descriptor
deprecated
added in
v0.0.2
func (*Bug) ProtoMessage ¶ added in v0.0.2
func (*Bug) ProtoMessage()
func (*Bug) ProtoReflect ¶ added in v0.0.2
func (x *Bug) ProtoReflect() protoreflect.Message
type BugScanner ¶ added in v0.0.2
func (*BugScanner) Next ¶ added in v0.0.2
func (it *BugScanner) Next() *Bug
Next() returns the next thing in the array
func (*BugScanner) Scan ¶ added in v0.0.2
func (it *BugScanner) Scan() bool
type Bugs ¶ added in v0.0.2
type Bugs struct { sync.RWMutex // auto-added by go.wit.com/apps/autogenpb Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:cdf6711e-f948-4376-9e72-cf1912a96cee` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v1` Bugs []*Bug `protobuf:"bytes,3,rep,name=Bugs,proto3" json:"Bugs,omitempty"` // this never gets used, but it's not worth violating the autogenpb standard // contains filtered or unexported fields }
func (*Bugs) All ¶ added in v0.0.2
func (x *Bugs) All() *BugScanner
func (*Bugs) Append ¶ added in v0.0.2
just a simple Append() shortcut (but still uses the mutex lock)
func (*Bugs) Descriptor
deprecated
added in
v0.0.2
func (*Bugs) FormatTEXT ¶ added in v0.0.2
apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!
func (*Bugs) GetVersion ¶ added in v0.0.2
func (*Bugs) IterAll ¶ added in v0.0.2
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Bugs) MarshalJSON ¶ added in v0.0.2
marshal json
func (*Bugs) ProtoMessage ¶ added in v0.0.2
func (*Bugs) ProtoMessage()
func (*Bugs) ProtoReflect ¶ added in v0.0.2
func (x *Bugs) ProtoReflect() protoreflect.Message
func (*Bugs) UnmarshalJSON ¶ added in v0.0.2
unmarshal json
func (*Bugs) UnmarshalTEXT ¶ added in v0.0.2
unmarshalTEXT. This reads the .text config file back in after the user edits it
type BugsScanner ¶ added in v0.0.2
func (*BugsScanner) Next ¶ added in v0.0.2
func (it *BugsScanner) Next() *Bugs
Next() returns the next thing in the array
func (*BugsScanner) Scan ¶ added in v0.0.2
func (it *BugsScanner) Scan() bool
Click to show internal directories.
Click to hide internal directories.