Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicroRPC ¶
type MicroRPC struct { Md string `yaml:"md"` Qp *orderedmap.OrderedMap `yaml:"qp,omitempty"` }
type MicroService ¶
type MicroService struct { Name string `yaml:"name"` Description string `yaml:"description"` Package string `yaml:"package,omitempty"` Target string `yaml:"target,omitempty"` Services []MicroRPC `yaml:"services,omitempty"` //RPCs Methods []MicroRPC `yaml:"methods,omitempty"` //RPCs SourceFile string `yaml:"_,omitempty"` }
holds a single service from microspec
func (MicroService) ToMicroServiceAst ¶
func (mt MicroService) ToMicroServiceAst() *MicroServiceAst
type MicroServiceAst ¶
type MicroServiceAst struct { Name string `yaml:"name"` ProtoImports []string `yaml:"imports"` Package string `yaml:"package,omitempty"` TargetPath string // to find out the file to write Description string `yaml:"description"` Services *orderedmap.OrderedMap `yaml:"services,omitempty"` // with RPC Target string `yaml:"target,omitempty"` SourceFile string }
type MicroServiceList ¶
type MicroServiceList struct { MicroServicesByName map[string]*MicroService MicroServicesASTByName map[string]*MicroServiceAst MicroServices []*MicroService `yaml:"Services"` }
func (*MicroServiceList) Unmarshal ¶
func (l *MicroServiceList) Unmarshal(data []byte)
unmarshal yaml/json to microtype list
func (*MicroServiceList) UpateServicelist ¶
func (l *MicroServiceList) UpateServicelist(servicelist *serviceAst.Servicelist, deleteSpecs bool, microTypelist *microtypes.MicroTypelist)
updates the core ast list
Click to show internal directories.
Click to hide internal directories.