types

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayType

type ArrayType struct {
	EltType   Typer
	Reference bool
}

ArrayType array type

func (*ArrayType) IsReference

func (t *ArrayType) IsReference() bool

IsReference return is reference

func (*ArrayType) SetReference

func (t *ArrayType) SetReference() Typer

SetReference return is reference

func (*ArrayType) String

func (t *ArrayType) String() string

type BasicType

type BasicType struct {
	Name      string
	Reference bool
}

BasicType go buildin type

func (*BasicType) IsReference

func (t *BasicType) IsReference() bool

IsReference return is reference

func (*BasicType) SetReference

func (t *BasicType) SetReference() Typer

SetReference return is reference

func (*BasicType) String

func (t *BasicType) String() string

type Field

type Field struct {
	Name string
	Type Typer
}

Field a pair of parameter name and type

func (*Field) String

func (f *Field) String() string

type InterfaceType

type InterfaceType struct {
	Package    string
	ImportPath string
	IdentName  string
	Reference  bool
}

InterfaceType struct type

func (*InterfaceType) IsReference

func (t *InterfaceType) IsReference() bool

IsReference return is reference

func (*InterfaceType) SetReference

func (t *InterfaceType) SetReference() Typer

SetReference return is reference

func (*InterfaceType) String

func (t *InterfaceType) String() string

type MapType

type MapType struct {
	KeyType   Typer
	ValueType Typer
	Reference bool
}

MapType map

func (*MapType) IsReference

func (t *MapType) IsReference() bool

IsReference return is reference

func (*MapType) SetReference

func (t *MapType) SetReference() Typer

SetReference return is reference

func (*MapType) String

func (t *MapType) String() string

type Method

type Method struct {
	Name       string // method name
	Comments   []string
	Options    []string
	Parameters []*Field
	Results    []*Field
}

Method service method

type ServiceSpec

type ServiceSpec struct {
	Name string
	// origin service package name
	Package string
	// service import path
	ImportPath string
	Receiver   string
	Methods    []*Method
}

ServiceSpec service spec

type StructType

type StructType struct {
	Package    string
	ImportPath string
	IdentName  string
	Reference  bool
	Fields     []*Field
	ProtoFile  string
}

StructType struct type

func (*StructType) IsReference

func (t *StructType) IsReference() bool

IsReference return is reference

func (*StructType) SetReference

func (t *StructType) SetReference() Typer

SetReference return is reference

func (*StructType) String

func (t *StructType) String() string

type Typer

type Typer interface {
	String() string
	IsReference() bool
	SetReference() Typer
}

Typer type interface

Jump to

Keyboard shortcuts

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