architecture

package
v0.0.0-...-ce37b04 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Architecture

type Architecture struct {
	Root *Directory
}

func NewArchitecture

func NewArchitecture() *Architecture

func (*Architecture) FindDirectory

func (arch *Architecture) FindDirectory(path string) *Directory

type Directory

type Directory struct {
	Directories map[string]*Directory
	Package     *Package
}

func NewDirectory

func NewDirectory() *Directory

func (*Directory) CreatePackage

func (directory *Directory) CreatePackage(name string, astFiles []*ast.File) (pkg *Package, err error)

type Func

type Func struct {
	Name        string
	Package     string
	Filename    string
	ParmTypes   []Type
	ReturnTypes []Type
}

type Interface

type Interface struct {
	Name         string
	Filename     string
	Methods      []*Method
	Implementers []Type
}

type Method

type Method struct {
	Func
	ReceiverType Type
}

type Package

type Package struct {
	Name       string
	Structs    []*Struct
	Interfaces []*Interface
	Funcs      []*Func
	Methods    []*Method
	Info       *types.Info
	AstFiles   []*ast.File
}

func NewPackage

func NewPackage(name string, astFiles []*ast.File) *Package

func (*Package) AddFunc

func (file *Package) AddFunc(name string, filename string) (function *Func)

func (*Package) AddInterface

func (file *Package) AddInterface(name string, filename string, methods []*Method) (iface *Interface)

func (*Package) AddMethod

func (file *Package) AddMethod(name, pkg, filename string, receiverType Type, parmtypes []Type, returnTypes []Type) (method *Method)

func (*Package) AddStruct

func (file *Package) AddStruct(name string, filename string) (structure *Struct)

type Struct

type Struct struct {
	Name     string
	Filename string
}

type Type

type Type string

Jump to

Keyboard shortcuts

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