common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenContext

type GenContext struct {
	// contains filtered or unexported fields
}

func (*GenContext) AddDocApi added in v0.0.5

func (gc *GenContext) AddDocApi(path, method string, api *models.SwaggerRoute)

func (*GenContext) AddDocMessage added in v0.0.5

func (gc *GenContext) AddDocMessage(id string, param *models.SwaggerMessage)

func (*GenContext) AddDocService added in v0.0.5

func (gc *GenContext) AddDocService(name string, service *models.SwaggerApis)

func (*GenContext) GenerateSwagger added in v0.0.5

func (gc *GenContext) GenerateSwagger() error

func (*GenContext) GetCatoPackage

func (gc *GenContext) GetCatoPackage() string

func (*GenContext) GetImportPathAlias

func (gc *GenContext) GetImportPathAlias(desc protoreflect.MessageDescriptor) string

func (*GenContext) GetNowField

func (gc *GenContext) GetNowField() *protogen.Field

func (*GenContext) GetNowFieldContainer

func (gc *GenContext) GetNowFieldContainer() *tray.FieldTray

func (*GenContext) GetNowFile

func (gc *GenContext) GetNowFile() *protogen.File

func (*GenContext) GetNowFileContainer

func (gc *GenContext) GetNowFileContainer() *tray.FileTray

func (*GenContext) GetNowMessage

func (gc *GenContext) GetNowMessage() *protogen.Message

func (*GenContext) GetNowMessageContainer

func (gc *GenContext) GetNowMessageContainer() *tray.MessageTray

func (*GenContext) GetNowMessageTypeName

func (gc *GenContext) GetNowMessageTypeName() string

func (*GenContext) GetNowMethod

func (gc *GenContext) GetNowMethod() *protogen.Method

func (*GenContext) GetNowMethodContainer

func (gc *GenContext) GetNowMethodContainer() *tray.MethodTray

func (*GenContext) GetNowService

func (gc *GenContext) GetNowService() *protogen.Service

func (*GenContext) GetNowServiceContainer

func (gc *GenContext) GetNowServiceContainer() *tray.ServiceTray

func (*GenContext) Init added in v0.0.5

func (gc *GenContext) Init(params map[string]string) *GenContext

func (*GenContext) NeedDoc added in v0.0.5

func (gc *GenContext) NeedDoc() bool

func (*GenContext) WithField

func (gc *GenContext) WithField(field *protogen.Field, container *tray.FieldTray) *GenContext

func (*GenContext) WithFile

func (gc *GenContext) WithFile(file *protogen.File, container *tray.FileTray) *GenContext

func (*GenContext) WithMessage

func (gc *GenContext) WithMessage(message *protogen.Message, container *tray.MessageTray) *GenContext

func (*GenContext) WithMethod

func (gc *GenContext) WithMethod(method *protogen.Method, container *tray.MethodTray) *GenContext

func (*GenContext) WithService

func (gc *GenContext) WithService(service *protogen.Service, container *tray.ServiceTray) *GenContext

type MapperType added in v0.0.4

type MapperType struct {
	TypeRaw  string
	IsSlice  bool
	IsStruct bool
}

func MapperGoTypeNameFromField

func MapperGoTypeNameFromField(ctx *GenContext, field protoreflect.FieldDescriptor) MapperType

func MapperGoTypeNameFromMessage

func MapperGoTypeNameFromMessage(ctx *GenContext, messageDesc protoreflect.MessageDescriptor) MapperType

func (MapperType) GoType added in v0.0.4

func (mp MapperType) GoType() string

func (MapperType) RawType added in v0.0.4

func (mp MapperType) RawType() string

Jump to

Keyboard shortcuts

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