Versions in this module Expand all Collapse all v0 v0.2.1 Jan 11, 2021 v0.1.0 Jan 17, 2019 Changes in this version + func Assemble(dt Deftree) error + func AssociateComments(dt Deftree, req *plugin.CodeGeneratorRequest) + func FindServiceFile(req *plugin.CodeGeneratorRequest) string + type BindingField struct + Description string + Kind string + Name string + Value string + func (_ *BindingField) GetByName(s string) Describable + func (self *BindingField) Describe(depth int) string + func (self *BindingField) GetDescription() string + func (self *BindingField) GetName() string + func (self *BindingField) SetDescription(d string) + func (self *BindingField) SetName(s string) + type Deftree interface + SetComment func([]string, string) error + String func() string + func New(req *plugin.CodeGeneratorRequest, serviceFile io.Reader) (Deftree, error) + func NewFromString(def string, gopath []string) (Deftree, error) + type Describable interface + Describe func(int) string + GetByName func(string) Describable + GetDescription func() string + GetName func() string + SetDescription func(string) + SetName func(string) + type EnumValue struct + Description string + Name string + Number int + func (_ *EnumValue) GetByName(s string) Describable + func (self *EnumValue) Describe(depth int) string + func (self *EnumValue) GetDescription() string + func (self *EnumValue) GetName() string + func (self *EnumValue) SetDescription(d string) + func (self *EnumValue) SetName(s string) + type FieldType struct + Description string + Enum *ProtoEnum + Name string + func (_ *FieldType) GetByName(s string) Describable + func (self *FieldType) Describe(depth int) string + func (self *FieldType) GetDescription() string + func (self *FieldType) GetName() string + func (self *FieldType) SetDescription(d string) + func (self *FieldType) SetName(s string) + type HttpParameter struct + Description string + Location string + Name string + Type string + func (_ *HttpParameter) GetByName(s string) Describable + func (self *HttpParameter) Describe(depth int) string + func (self *HttpParameter) GetDescription() string + func (self *HttpParameter) GetName() string + func (self *HttpParameter) SetDescription(d string) + func (self *HttpParameter) SetName(s string) + type MessageField struct + Description string + IsMap bool + Label string + Name string + Number int + Type FieldType + func (_ *MessageField) GetByName(s string) Describable + func (self *MessageField) Describe(depth int) string + func (self *MessageField) GetDescription() string + func (self *MessageField) GetName() string + func (self *MessageField) SetDescription(d string) + func (self *MessageField) SetName(s string) + type MethodHttpBinding struct + CustomHTTPPattern []*BindingField + Description string + Fields []*BindingField + Name string + Params []*HttpParameter + Path string + Verb string + func (self *MethodHttpBinding) Describe(depth int) string + func (self *MethodHttpBinding) GetByName(s string) Describable + func (self *MethodHttpBinding) GetDescription() string + func (self *MethodHttpBinding) GetName() string + func (self *MethodHttpBinding) SetDescription(d string) + func (self *MethodHttpBinding) SetName(s string) + type MicroserviceDefinition struct + Description string + Files []*ProtoFile + Name string + func (self *MicroserviceDefinition) Describe(depth int) string + func (self *MicroserviceDefinition) GetByName(name string) Describable + func (self *MicroserviceDefinition) GetDescription() string + func (self *MicroserviceDefinition) GetName() string + func (self *MicroserviceDefinition) SetComment(namepath []string, comment_body string) error + func (self *MicroserviceDefinition) SetDescription(d string) + func (self *MicroserviceDefinition) SetName(s string) + func (self *MicroserviceDefinition) String() string + type ProtoEnum struct + Description string + Name string + Values []*EnumValue + func NewEnum(enum *descriptor.EnumDescriptorProto) (*ProtoEnum, error) + func (pe *ProtoEnum) Describe(depth int) string + func (pe *ProtoEnum) GetByName(name string) Describable + func (pe *ProtoEnum) GetDescription() string + func (pe *ProtoEnum) GetName() string + func (pe *ProtoEnum) SetDescription(d string) + func (pe *ProtoEnum) SetName(s string) + type ProtoFile struct + Description string + Enums []*ProtoEnum + Messages []*ProtoMessage + Name string + Services []*ProtoService + func NewFile(pfile *descriptor.FileDescriptorProto, curNewDt *MicroserviceDefinition) (*ProtoFile, error) + func (self *ProtoFile) Describe(depth int) string + func (self *ProtoFile) GetByName(name string) Describable + func (self *ProtoFile) GetDescription() string + func (self *ProtoFile) GetName() string + func (self *ProtoFile) SetDescription(d string) + func (self *ProtoFile) SetName(s string) + type ProtoMessage struct + Description string + Fields []*MessageField + Name string + func NewMessage(msg *descriptor.DescriptorProto) (*ProtoMessage, error) + func (self *ProtoMessage) Describe(depth int) string + func (self *ProtoMessage) GetByName(name string) Describable + func (self *ProtoMessage) GetDescription() string + func (self *ProtoMessage) GetName() string + func (self *ProtoMessage) SetDescription(d string) + func (self *ProtoMessage) SetName(s string) + type ProtoService struct + Description string + FullyQualifiedName string + Methods []*ServiceMethod + Name string + func NewService(srvc *descriptor.ServiceDescriptorProto, curNewFile *ProtoFile, ...) (*ProtoService, error) + func (self *ProtoService) Describe(depth int) string + func (self *ProtoService) GetByName(name string) Describable + func (self *ProtoService) GetDescription() string + func (self *ProtoService) GetName() string + func (self *ProtoService) SetDescription(d string) + func (self *ProtoService) SetName(s string) + type ServiceMethod struct + Description string + HttpBindings []*MethodHttpBinding + Name string + RequestType *ProtoMessage + ResponseType *ProtoMessage + func (self *ServiceMethod) Describe(depth int) string + func (self *ServiceMethod) GetByName(name string) Describable + func (self *ServiceMethod) GetDescription() string + func (self *ServiceMethod) GetName() string + func (self *ServiceMethod) SetDescription(d string) + func (self *ServiceMethod) SetName(s string)