model

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 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 Array

type Array struct {
	Value *Value
	Len   int // 0 = slice, >0 = fixed-size array
}

type Field

type Field struct {
	Value    *Value
	Name     string    `json:",omitempty"`
	JSONInfo *JSONInfo `json:",omitempty"`
}

type JSONInfo

type JSONInfo struct {
	Name      string
	Type      string
	Union     bool
	Inline    bool
	OmitEmpty bool
	Ignore    bool
}

type Map

type Map struct {
	Key       *Value
	Value     *Value
	KeyType   string
	KeyGoType string
}

type Method

type Method struct {
	Name   string
	Args   []*Field
	Return []*Field
}

type Scalar

type Scalar struct {
	Name    string
	Package string
	Type    ScalarType
}

func (*Scalar) FullName

func (st *Scalar) FullName() string

type ScalarType

type ScalarType string
const (
	ScalarTypeString ScalarType = "string"
	ScalarTypeAny    ScalarType = "any"
	ScalarTypeByte   ScalarType = "byte"
	ScalarTypeError  ScalarType = "error"
	ScalarTypeNumber ScalarType = "number"
	ScalarTypeBool   ScalarType = "bool"
	ScalarTypeNone   ScalarType = ""
)

type Service

type Service struct {
	Name        string
	Methods     ServiceMethods
	Endpoint    string
	IsInterface bool
}

type ServiceList

type ServiceList []*Service

func (ServiceList) Len

func (sl ServiceList) Len() int

func (ServiceList) Less

func (sl ServiceList) Less(i, j int) bool

func (ServiceList) Swap

func (sl ServiceList) Swap(i, j int)

type ServiceMethods

type ServiceMethods []*Method

func (ServiceMethods) Len

func (sm ServiceMethods) Len() int

func (ServiceMethods) Less

func (sm ServiceMethods) Less(i, j int) bool

func (ServiceMethods) Swap

func (sm ServiceMethods) Swap(i, j int)

type Struct

type Struct struct {
	IsError      bool
	Package      string
	Name         string
	Fields       []*Field
	UnionFields  []*Field
	InlineFields []*Field
	Map          *Map
	Array        *Array
}

func (*Struct) FullName

func (s *Struct) FullName() string

type StructType

type StructType struct {
	Name    string
	Package string
}

func (*StructType) FullName

func (st *StructType) FullName() string

type Value

type Value struct {
	JSONInfo     *JSONInfo   `json:",omitempty"`
	IsError      bool        `json:",omitempty"`
	IsInterface  bool        `json:",omitempty"`
	Scalar       *Scalar     `json:",omitempty"`
	ScalarType   ScalarType  `json:",omitempty"`
	GoScalarType string      `json:",omitempty"`
	StructType   *StructType `json:",omitempty"`
	Struct       *Struct     `json:",omitempty"`
	Map          *Map        `json:",omitempty"`
	Array        *Array      `json:",omitempty"`
	IsPtr        bool        `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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