microservices

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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, overwriteSpecOptions bool)

updates the core ast list

type RpcMap

type RpcMap struct {
	Readonly     bool
	Required     bool
	Repeated     bool
	Type         string
	DefaultValue string
	Description  string
	FieldId      int32
}

field string will be converted to this type this type will be converted to rpcMap

func NewRpcMap

func NewRpcMap() RpcMap

func (*RpcMap) ParseServicestring

func (m *RpcMap) ParseServicestring(s string)

Jump to

Keyboard shortcuts

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