model

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	Doc  string
	Name string
	Type string
}

type Field

type Field struct {
	Name     string    `json:"name,omitempty"`
	Type     string    `json:"type,omitempty"`
	FuncType *FuncType `json:"funcType,omitempty"`
	Tag      string    `json:"tag,omitempty"`
}

type FuncType added in v2.7.0

type FuncType struct {
	Params []Field
	Return []Field
}

type Function

type Function struct {
	Doc      string
	Name     string
	Receiver string
	Params   []Field
	Return   []Field
	Code     []string
}

type GlobalVariable added in v2.2.1

type GlobalVariable struct {
	Doc   string
	Name  string
	Type  string
	Value string
}

type Import

type Import struct {
	Alias string
	Path  string
}

type Interface

type Interface struct {
	Doc     string   `json:"doc"`
	Name    string   `json:"name"`
	Methods []Method `json:"methods"`
}

type InterfaceTransferObject added in v2.9.0

type InterfaceTransferObject struct {
	Path      string    `json:"path"`
	Imports   []Import  `json:"imports"`
	Interface Interface `json:"interface"`
}

type Method

type Method struct {
	Receiver Field    `json:"receiver"`
	Name     string   `json:"name"`
	Params   []Field  `json:"params"`
	Return   []Field  `json:"return"`
	Code     []string `json:"code"`
}

type MethodTransferObject added in v2.9.0

type MethodTransferObject struct {
	Path    string   `json:"path"`
	Imports []Import `json:"imports"`
	Method  Method   `json:"method"`
}

type Package

type Package struct {
	Name            string
	Imports         []Import
	Structs         []Struct
	Interfaces      []Interface
	Functions       []Function
	Methods         []Method
	Aliases         []Alias
	GlobalVariables []GlobalVariable
}

type Struct

type Struct struct {
	Doc     string
	Name    string
	Fields  []Field
	Methods []Method
}

Jump to

Keyboard shortcuts

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