plugins

package
v0.0.0-...-794fa9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Imports    []zcore.Import
	Interfaces []ApiInterface
}

func (Api) Args

func (a Api) Args() ([]string, map[string]string)

func (Api) Description

func (a Api) Description() string

func (Api) Name

func (a Api) Name() string

func (Api) Run

func (a Api) Run(entities zcore.DeclEntities) (err error)

type ApiHandler

type ApiHandler struct {
	Name     string
	Resource string
	Options  map[string]string
	Invoke   string
}

type ApiInterface

type ApiInterface struct {
	Package  string
	Name     string
	Handlers []ApiHandler
}

func (ApiInterface) FieldName

func (i ApiInterface) FieldName() string

func (ApiInterface) TypeName

func (i ApiInterface) TypeName() string

type Doc

type Doc struct {
	Types  []DocType
	Values []DocType
}

func (Doc) Args

func (d Doc) Args() ([]string, map[string]string)

func (Doc) Description

func (d Doc) Description() string

func (Doc) GenDoc

func (d Doc) GenDoc(dir string, entities zcore.DeclEntities) (err error)

func (Doc) Name

func (d Doc) Name() string

func (Doc) Run

func (d Doc) Run(entities zcore.DeclEntities) (err error)

type DocField

type DocField struct {
	Name string
	Docs string
}

type DocType

type DocType struct {
	Name   string
	Fields []DocField
	Data   bool
}

type Impl

type Impl struct{}

func (Impl) Args

func (i Impl) Args() ([]string, map[string]string)

func (Impl) Description

func (i Impl) Description() string

func (Impl) Name

func (i Impl) Name() string

func (Impl) Run

func (i Impl) Run(entities zcore.DeclEntities) (err error)

type ImplMethod

type ImplMethod struct {
	Ptr      bool
	Filename string
	SrcFile  *zcore.File
	SrcType  *ast.FuncType
	DstFile  *zcore.File
	DstType  *ast.FuncType
	Order    int
}

type Option

type Option struct {
	Imports []zcore.Import
	Types   []optionType
}

func (Option) Args

func (o Option) Args() ([]string, map[string]string)

func (Option) Description

func (o Option) Description() string

func (Option) Name

func (o Option) Name() string

func (Option) Run

func (o Option) Run(es zcore.DeclEntities) (err error)

type Orm

type Orm struct {
	Tables []zcore.OrmTable
}

func (Orm) Args

func (o Orm) Args() ([]string, map[string]string)

func (Orm) Description

func (o Orm) Description() string

func (Orm) Name

func (o Orm) Name() string

func (Orm) Run

func (o Orm) Run(entities zcore.DeclEntities) (err error)

type Tag

type Tag struct {
	ModifySet *zcore.ModifySet
	Tags      map[string]string
	FieldTags map[string]string
	Keys      []string
	Decl      *zcore.AnnotatedDecl
}

func (*Tag) Args

func (t *Tag) Args() ([]string, map[string]string)

func (*Tag) Description

func (t *Tag) Description() string

func (*Tag) Name

func (t *Tag) Name() string

func (*Tag) Run

func (t *Tag) Run(entities zcore.DeclEntities) (err error)

func (*Tag) Visit

func (t *Tag) Visit(n ast.Node) ast.Visitor

type Wire

type Wire struct {
	Imports []zcore.Import
	Sets    interface{}
	Injects interface{}
	Aops    interface{}
}

func (Wire) Args

func (w Wire) Args() ([]string, map[string]string)

func (Wire) Description

func (w Wire) Description() string

func (Wire) Name

func (w Wire) Name() string

func (Wire) Run

func (w Wire) Run(es zcore.DeclEntities) (err error)

type WireAop

type WireAop struct {
	Name      string
	Interface string
	Implement string
	Methods   []WireAopMethod
}

type WireAopMethod

type WireAopMethod struct {
	Name    string
	Params  []string
	Results []string
}

type WireSet

type WireSet struct {
	Name     string
	Elements []*WireSetElement
}

type WireSetElement

type WireSetElement struct {
	Path  string
	Name  string
	Decls []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL