Documentation ¶
Index ¶
- func Comment(format string, args ...interface{}) protogen.Comments
- func GenerateFile(fs flag.FlagSet, plugin *protogen.Plugin, proto *protogen.File, ...) error
- type Collection
- func (left *Collection) Merge(right *Collection) *Collection
- func (left *Collection) NestedDocumentTypeName(prefix string) string
- func (left *Collection) ParentDocumentTypeName(prefix string) string
- func (left *Collection) TypeName(prefix string) string
- func (left *Collection) TypeNameIter(prefix string) string
- func (left *Collection) TypeNameQuery(prefix string) string
- type Document
- type Field
- type FieldType
- type File
- type Message
- func (m *Message) Annotate(symbol string, loc protogen.Location)
- func (m *Message) CollectionConstantName() string
- func (m *Message) CollectionName() string
- func (m *Message) CollectionNameTitle() string
- func (m *Message) CustomObjectName() string
- func (m *Message) Gen()
- func (m *Message) P(v ...interface{})
- func (m *Message) ProtoName() string
- type Package
- type Packages
- type Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶ added in v1.1.0
type Collection struct { Segment string Title string Document *Document Parent *Document Message *Message }
func (*Collection) Merge ¶ added in v1.1.0
func (left *Collection) Merge(right *Collection) *Collection
func (*Collection) NestedDocumentTypeName ¶ added in v1.1.0
func (left *Collection) NestedDocumentTypeName(prefix string) string
func (*Collection) ParentDocumentTypeName ¶ added in v1.1.0
func (left *Collection) ParentDocumentTypeName(prefix string) string
func (*Collection) TypeName ¶ added in v1.1.0
func (left *Collection) TypeName(prefix string) string
func (*Collection) TypeNameIter ¶ added in v1.1.0
func (left *Collection) TypeNameIter(prefix string) string
func (*Collection) TypeNameQuery ¶ added in v1.1.0
func (left *Collection) TypeNameQuery(prefix string) string
type Document ¶ added in v1.1.0
type Document struct { Collections *orderedmap.OrderedMap[string, *Collection] Parent *Collection }
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) FirestoreFieldName ¶
type FieldType ¶
type FieldType struct { Go protogen.GoIdent Firestore protogen.GoIdent IsPointer bool // TODO: unused? IsEnum bool IsCustom bool IsExternal bool IsList bool // contains filtered or unexported fields }
func NewFieldType ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File wraps the input .proto file and keeps information to generate code.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) CollectionConstantName ¶
func (*Message) CollectionName ¶ added in v1.1.0
func (*Message) CollectionNameTitle ¶ added in v1.1.0
func (*Message) CustomObjectName ¶
type Package ¶ added in v1.1.0
type Package struct {
// contains filtered or unexported fields
}
func (*Package) CollectPath ¶ added in v1.1.0
type Packages ¶ added in v1.1.0
type Packages struct {
// contains filtered or unexported fields
}
func NewPackages ¶ added in v1.1.0
type Path ¶ added in v1.1.0
type Path struct {
Collection *Collection
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.