Documentation
¶
Index ¶
- type GenContext
- func (gc *GenContext) AddDocApi(path, method string, api *models.SwaggerRoute)
- func (gc *GenContext) AddDocMessage(id string, param *models.SwaggerMessage)
- func (gc *GenContext) AddDocService(name string, service *models.SwaggerApis)
- func (gc *GenContext) GenerateSwagger() error
- func (gc *GenContext) GetCatoPackage() string
- func (gc *GenContext) GetImportPathAlias(desc protoreflect.MessageDescriptor) string
- func (gc *GenContext) GetNowField() *protogen.Field
- func (gc *GenContext) GetNowFieldContainer() *tray.FieldTray
- func (gc *GenContext) GetNowFile() *protogen.File
- func (gc *GenContext) GetNowFileContainer() *tray.FileTray
- func (gc *GenContext) GetNowMessage() *protogen.Message
- func (gc *GenContext) GetNowMessageContainer() *tray.MessageTray
- func (gc *GenContext) GetNowMessageTypeName() string
- func (gc *GenContext) GetNowMethod() *protogen.Method
- func (gc *GenContext) GetNowMethodContainer() *tray.MethodTray
- func (gc *GenContext) GetNowService() *protogen.Service
- func (gc *GenContext) GetNowServiceContainer() *tray.ServiceTray
- func (gc *GenContext) Init(params map[string]string) *GenContext
- func (gc *GenContext) NeedDoc() bool
- func (gc *GenContext) WithField(field *protogen.Field, container *tray.FieldTray) *GenContext
- func (gc *GenContext) WithFile(file *protogen.File, container *tray.FileTray) *GenContext
- func (gc *GenContext) WithMessage(message *protogen.Message, container *tray.MessageTray) *GenContext
- func (gc *GenContext) WithMethod(method *protogen.Method, container *tray.MethodTray) *GenContext
- func (gc *GenContext) WithService(service *protogen.Service, container *tray.ServiceTray) *GenContext
- type MapperType
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
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
Click to show internal directories.
Click to hide internal directories.