Documentation ¶
Index ¶
- type AnnotationInfo
- type FunctionInfo
- type Indexer
- func (indexer *Indexer) FindInterfaceByAnnotation(name string) []*StructInfo
- func (indexer *Indexer) FindInterfaceImplementation(name string) []*StructInfo
- func (indexer *Indexer) FindStructByAnnotation(name string) []*StructInfo
- func (indexer *Indexer) Interfaces() map[string]*InterfaceInfo
- func (indexer *Indexer) Load() error
- func (indexer *Indexer) LoadPattern(pattern string) error
- func (indexer *Indexer) Packages() map[string]*PackageInfo
- func (indexer *Indexer) Structs() map[string]*StructInfo
- type InterfaceInfo
- type PackageInfo
- type StructInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationInfo ¶
AnnotationInfo represents annotation
type FunctionInfo ¶
type FunctionInfo struct {
// contains filtered or unexported fields
}
FunctionInfo represents function
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer hold the information about the packages and types
func (*Indexer) FindInterfaceByAnnotation ¶
func (indexer *Indexer) FindInterfaceByAnnotation(name string) []*StructInfo
FindInterfaceByAnnotation find all interfaces by annotation
func (*Indexer) FindInterfaceImplementation ¶
func (indexer *Indexer) FindInterfaceImplementation(name string) []*StructInfo
FindInterfaceImplementation find all interface implementations
func (*Indexer) FindStructByAnnotation ¶
func (indexer *Indexer) FindStructByAnnotation(name string) []*StructInfo
FindStructByAnnotation find all structs by annotation
func (*Indexer) Interfaces ¶
func (indexer *Indexer) Interfaces() map[string]*InterfaceInfo
Interfaces return map of all interfaces
func (*Indexer) LoadPattern ¶
LoadPattern load packages by the pattern to the indexer
func (*Indexer) Packages ¶
func (indexer *Indexer) Packages() map[string]*PackageInfo
Packages return map of all packages
func (*Indexer) Structs ¶
func (indexer *Indexer) Structs() map[string]*StructInfo
Structs return map of all structs
type InterfaceInfo ¶
type InterfaceInfo struct {
// contains filtered or unexported fields
}
InterfaceInfo represents interface
func (*InterfaceInfo) Annotations ¶
func (s *InterfaceInfo) Annotations() []*AnnotationInfo
Annotations returns list of interface annotations or emtpy list
type PackageInfo ¶
type PackageInfo struct {
// contains filtered or unexported fields
}
PackageInfo struct represents the package information
type StructInfo ¶
type StructInfo struct {
// contains filtered or unexported fields
}
StructInfo information about the struct
func (*StructInfo) Annotations ¶
func (s *StructInfo) Annotations() []*AnnotationInfo
Annotations returns list of struct annotations of empty list