Documentation
¶
Index ¶
- func AddEnum(enum *Enum)
- func AddMessage(message *Message)
- func GetMapper() *mapper
- func InitCache()
- func NewMapper(schema *schema.OCSFSchema) *mapper
- func NewProto(p *Pkg)
- func ToEnumName(input string) string
- func ToEnumValueName(input string) string
- func ToMessageName(input string) string
- type CacheMap
- type Comment
- type Enum
- func (e *Enum) AddValue(value *EnumValue)
- func (e *Enum) GetName() string
- func (e *Enum) GetPackage() string
- func (e *Enum) GetReference() string
- func (e *Enum) GetValue(name string) (*EnumValue, bool)
- func (e *Enum) GetValues() []*EnumValue
- func (e *Enum) HasUNSPECIFIED() bool
- func (e *Enum) Marshal() string
- type EnumValue
- type EnumValues
- type Enums
- type Field
- type FieldType
- type Fields
- type Import
- type Imports
- type Message
- type Messages
- type Pkg
- func (p *Pkg) GetDirName() string
- func (p *Pkg) GetDirPath() string
- func (p *Pkg) GetEnums() []*Enum
- func (p *Pkg) GetFullName() string
- func (p *Pkg) GetMessages() []*Message
- func (p *Pkg) GetName() string
- func (p *Pkg) GetParentHierarchy() []*Pkg
- func (p *Pkg) Marshal()
- func (p *Pkg) NewPackage(pkgName string) *Pkg
- type Pkgs
- type Preprocessor
- type Proto
- type ProtoFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMessage ¶
func AddMessage(message *Message)
func NewMapper ¶
func NewMapper(schema *schema.OCSFSchema) *mapper
func ToEnumName ¶
ToEnumName converts a string to a valid Enum Name
func ToEnumValueName ¶
func ToMessageName ¶
Types ¶
type Enum ¶
func (*Enum) GetPackage ¶
GetPackage returns the package name of the Enum
func (*Enum) GetReference ¶
GetReference returns the reference of the Enum
func (*Enum) HasUNSPECIFIED ¶ added in v0.2.2
Enum has at least one value ending with HasUNSPECIFIED
type EnumValue ¶
type EnumValues ¶
type Field ¶
type Message ¶
type Message struct { Name string GroupKey string Comment Comment Package *Pkg // contains filtered or unexported fields }
func GetMessage ¶
func (*Message) GetImports ¶
func (*Message) GetPackage ¶
func (*Message) GetReference ¶
type Pkg ¶
func NewPackage ¶
func (*Pkg) GetDirName ¶
func (*Pkg) GetDirPath ¶
func (*Pkg) GetFullName ¶
func (*Pkg) GetMessages ¶
func (*Pkg) GetParentHierarchy ¶
func (*Pkg) NewPackage ¶
type Preprocessor ¶
Click to show internal directories.
Click to hide internal directories.