grpc

package
v0.0.0-...-406ca89 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TPL_SERVICE = "tgen/grpc/grpc"

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	*parser.Field
}

func (*Field) GetType

func (s *Field) GetType() template.HTML

type GrpcGen

type GrpcGen struct {
	langs.BaseGen
	Thrift *parser.Thrift
	// contains filtered or unexported fields
}

func (*GrpcGen) Generate

func (this *GrpcGen) Generate(output string, parsedThrift map[string]*parser.Thrift)

func (*GrpcGen) GetPackages

func (g *GrpcGen) GetPackages() (result map[string]string)

func (*GrpcGen) GetReqStructs

func (g *GrpcGen) GetReqStructs() (structs []*Struct)

func (*GrpcGen) GetRespStructs

func (g *GrpcGen) GetRespStructs() (structs []*Struct)

func (*GrpcGen) GetStructs

func (g *GrpcGen) GetStructs() (structs []*Struct)

func (*GrpcGen) Includes

func (g *GrpcGen) Includes() (includes []string)

func (*GrpcGen) ServiceName

func (g *GrpcGen) ServiceName() string

func (*GrpcGen) SetThrift

func (g *GrpcGen) SetThrift(t *parser.Thrift)

type Struct

type Struct struct {
	*parser.Struct
}

func (*Struct) GetFields

func (s *Struct) GetFields() (fields []*Field)

Jump to

Keyboard shortcuts

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