ts

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTsFile

func GenerateTsFile(gen *protogen.Plugin, file *protogen.File, tsDir string) *protogen.GeneratedFile

Types

type Enum

type Enum struct {
	Name     string
	Leading  string
	Trailing string
	MaxLen   int
	Fields   []*EnumField
}

func (*Enum) AddField

func (e *Enum) AddField(field *EnumField)

func (*Enum) String

func (e *Enum) String() (string, error)

type EnumField

type EnumField struct {
	FieldName string
	Number    string
	Trailing  string
	LastOne   bool
	Space     string
}

func (*EnumField) GetLen

func (te *EnumField) GetLen() int

func (*EnumField) String

func (te *EnumField) String(maxLen int) string

type Interface

type Interface struct {
	Name     string
	Leading  string
	Trailing string
	MaxLen   int
	Fields   []*InterfaceField
}

func (*Interface) String

func (i *Interface) String() (string, error)

type InterfaceField

type InterfaceField struct {
	FieldName string
	FieldType string
	Trailing  string
	Required  bool
	IsList    bool
	TotalLen  int
}

func (*InterfaceField) String

func (tf *InterfaceField) String(maxLen int) string

type Rpc

type Rpc struct {
	Name     string
	Url      string
	Input    string
	Output   string
	Leading  string
	Trailing string
	MaxLen   int
	Method   string
	// contains filtered or unexported fields
}

func (*Rpc) String

func (r *Rpc) String() (string, error)

Jump to

Keyboard shortcuts

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