Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶ added in v2.1.1
func (Error) StringCode ¶ added in v2.3.0
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator main package structure
type Method ¶ added in v2.1.1
type Method struct { Name string // Params contains all method arguments Params []Value // RPC requires single one return value Returns *Value // Models contains all models which linked from Params or Return values by ModelName Models []Model // Description describes what the method does Description string // Typed errors Errors []Error }
func (Method) CommentDescription ¶ added in v2.1.1
CommentDescription add to head of all lines two slashes
type Schema ¶ added in v2.1.1
type Schema struct { gen.GeneratorData Package string Namespaces []Namespace }
func (Schema) MethodByName ¶ added in v2.1.1
func (Schema) NamespaceByName ¶ added in v2.1.1
func (Schema) NamespaceMethodNames ¶ added in v2.1.1
NamespaceMethodNames return all methodNames by namespace name.
func (Schema) NamespaceNames ¶ added in v2.1.1
NamespaceNames return all namespace names.
type Value ¶ added in v2.1.1
type Value struct { Name string Type string Optional bool Description string ArrayItemType string ModelName string }
func (Value) CommentDescription ¶ added in v2.4.1
CommentDescription add to head of all lines two slashes
func (Value) LocalModelName ¶ added in v2.1.5
LocalModelName rename external packages model names: pkg.Model -> PkgModel
Click to show internal directories.
Click to hide internal directories.