tsgen

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

add extra types to generate here

View Source
var TypeUnions = []tsgenmeta.TypeUnionMeta{}

add extra type unions to generate here

Functions

func GenerateExtraTypes

func GenerateExtraTypes(tsTypesMap map[reflect.Type]string)

func GenerateMethodBody

func GenerateMethodBody(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta) string

func GenerateMethodSignature

func GenerateMethodSignature(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta, isFirst bool, tsTypesMap map[reflect.Type]string) string

func GenerateRpcClientApiMethod

func GenerateRpcClientApiMethod(methodDecl *rpc.RpcMethodDecl, tsTypesMap map[reflect.Type]string) string

func GenerateRpcServerTypes

func GenerateRpcServerTypes(tsTypesMap map[reflect.Type]string) error

func GenerateTSType

func GenerateTSType(rtype reflect.Type, tsTypesMap map[reflect.Type]string)

func GenerateTSTypeUnion

func GenerateTSTypeUnion(unionMeta tsgenmeta.TypeUnionMeta, tsTypeMap map[reflect.Type]string)

func TypeToTSType

func TypeToTSType(t reflect.Type, tsTypesMap map[reflect.Type]string) (string, []reflect.Type)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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