defs

package
v0.0.0-...-2c63f42 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeNone = iota
	NodeField
	NodeStartInline
	NodeEndInline
)
View Source
const (
	KindService = "Service"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgItem

type ArgItem struct {
	Inline bool
	Name   string
	Type   types.Type
	Var    *types.Var
	Ptr    bool
	Struct *types.Struct
}

type ArgItems

type ArgItems []*ArgItem

func (ArgItems) Walk

func (args ArgItems) Walk(fn WalkFunc) error

type Enum

type Enum struct {
	Name string

	// sorted values as appear in code
	Values []interface{}
	Names  []string
	Labels []string

	MapValue map[string]interface{} // int or uint64
	MapName  map[interface{}]string
	MapLabel map[string]map[string]string

	Type     *types.Named
	Basic    *types.Basic
	MapConst map[string]*types.Const
}

type Kind

type Kind string

type Message

type Message struct {
	Items ArgItems
}

type Method

type Method struct {
	Service  *Service
	Name     string
	APIPath  string
	Comment  string
	Request  *Message
	Response *Message

	Method *types.Func
}

type NodeType

type NodeType int

type Service

type Service struct {
	Kind      Kind
	Name      string
	FullName  string
	APIPath   string
	APIPathID string
	Methods   []*Method

	Interface *types.TypeName

	APIPath2 string
}

type WalkFunc

type WalkFunc func(node NodeType, name string, field *types.Var, tag string) error

Jump to

Keyboard shortcuts

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