Versions in this module Expand all Collapse all v0 v0.0.1 Feb 17, 2024 Changes in this version + func BuildAstDoc(doc *Docs, d *AstDoc) + func BuildModel(in *DocModel, out *Model) + func Dedup(arr interface{}, cond func(int) string) + func Filter(arr interface{}, cond func(int) bool) + func GoFormatter(f *File) (err error) + func MustParseTemplates() *template.Template + func ParamName(s string) string + func ReportFile(f *File) + type AGICommand struct + Description string + Module string + Name string + SeeAlso []*SeeAlso + Synopsis string + Syntax *Syntax + func (a AGICommand) StructName() string + type AgiDocModel struct + Description *DescriptionModel + Language string + Name string + SeeAlso *SeeAlsoModel + Synopsis string + Syntax *SyntaxDocModel + type Annotation interface + Name func() string + type AstDoc struct + Actions []*Type + Events []*Type + type DescriptionModel struct + EnumList *EnumListModel + Note ... + Para []ParaRaw + VariableList *VariableListModel + type DocModel struct + Agi []*AgiDocModel + Manager []*ManagerActionModel + ManagerEvent []*ManagerEventModel + XMLName xml.Name + func (*DocModel) Parameter(in *SyntaxParameterDocModel) *Parameter + func (d *DocModel) AGIModel(in *AgiDocModel) *AGICommand + func (d *DocModel) Description(in *DescriptionModel) string + func (d *DocModel) ManagerEventModel(in *ManagerEventModel) *ManagerEvent + func (d *DocModel) ManagerModel(in *ManagerActionModel) *ManagerAction + func (d *DocModel) SeeAlso(in *SeeAlsoModel) (o []*SeeAlso) + func (d *DocModel) Synopsis(in string) string + func (d *DocModel) Syntax(in *SyntaxDocModel) *Syntax + type Docs struct + Agi []struct{ ... } + Application []struct{ ... } + ConfigInfo []struct{ ... } + Function []struct{ ... } + Info []struct{ ... } + Manager []struct{ ... } + ManagerEvent []struct{ ... } + Text string + XMLName xml.Name + Xi string + type EnumListModel struct + Enum []EnumModel + type EnumModel struct + Name string + Para ParaRaw + type Field struct + Annotations interface{} + Default string + Doc string + Name string + Required bool + StructTag string + Type *TypeInfo + type File struct + Content []byte + Name string + type GenerateTemplate struct + DeriveSource func(ctx context.Context, rootSource interface{}) interface{} + Format func(ctx context.Context, source interface{}) string + FormatName string + Name string + Skip func(ctx context.Context, source interface{}) bool + func (tmpl *GenerateTemplate) Generate(ctx context.Context, ge *Generator, source interface{}) (files []File, err error) + type Generator struct + Debug bool + Files []File + Formatter func(file *File) error + Loader func() error + Template *template.Template + Templates []TemplateGenerate + func NewAGIGenerator() *Generator + func NewAMIGenerator() *Generator + func (ge *Generator) Generate(ctx context.Context, source interface{}) (err error) + func (ge *Generator) Write(s WriteConfig) error + type ManagerAction struct + Description string + Name string + Response *ManagerEvent + Responses []*ManagerEvent + SeeAlso []*SeeAlso + Synopsis string + Syntax *Syntax + func (m ManagerAction) StructName() string + type ManagerActionModel struct + Description *DescriptionModel + Language string + Name string + Responses ManagerResponseModel + SeeAlso *SeeAlsoModel + Synopsis string + Syntax *SyntaxDocModel + type ManagerEvent struct + Name string + SeeAlso []*SeeAlso + Synopsis string + Syntax *Syntax + func (m ManagerEvent) StructName() string + type ManagerEventInstanceModel struct + Class string + Description *DescriptionModel + Language string + SeeAlso *SeeAlsoModel + Synopsis string + Syntax *SyntaxDocModel + Text string + type ManagerEventModel struct + Instance ManagerEventInstanceModel + Name string + type ManagerResponseListElementModel struct + ManagerEvent []*ManagerEventModel + Text string + type ManagerResponseModel struct + ListElements *ManagerResponseListElementModel + ManagerEvent *ManagerEventModel + Text string + func (m ManagerResponseModel) Events() []*ManagerEventModel + type Model struct + AGICommands []*AGICommand + Actions []*ManagerAction + Events []*ManagerEvent + type ParaRaw struct + Data string + type Parameter struct + Default string + Description string + Name string + RawName string + Required bool + Type string + type SeeAlso struct + Name string + Type string + type SeeAlsoModel struct + Ref []SeeAlsoRefModel + type SeeAlsoRefModel struct + Text string + Type string + type Syntax struct + Missing bool + Params []*Parameter + func (d Syntax) HasRequiredParam() bool + type SyntaxDocModel struct + BridgeSnapshot []struct{ ... } + ChannelSnapshot []struct{ ... } + Parameter []SyntaxParameterDocModel + type SyntaxParameterDocModel struct + EnumList *EnumListModel + Name string + Note ... + Para ParaRaw + Required bool + type TemplateGenerate interface + Generate func(ctx context.Context, ge *Generator, source interface{}) ([]File, error) + type Type struct + Doc string + Fields []*Field + Name string + type TypeInfo struct + Type string + func (ti *TypeInfo) String() string + type VariableListModel struct + Variable []VariableListVariableModel + type VariableListVariableModel struct + Name string + Para ParaRaw + Value []VariableListVariableValueModel + type VariableListVariableValueModel struct + Name string + Text string + type WriteConfig struct + DryRun bool + Target string