plugin

package
v0.0.0-...-5e0d1b1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelField

func CamelField(str string) string

func CheckUidSeed

func CheckUidSeed(msg *descriptor.DescriptorProto, uid *options.UidOptions) error

func CleanImports

func CleanImports(pFileText *string) *string

CleanImports removes extraneous imports and lines from a proto response file Content

func CleanImportsDao

func CleanImportsDao(pFileText *string) *string

func CleanImportsTs

func CleanImportsTs(pFileText *string) *string

func GetApiCfgExtension

func GetApiCfgExtension(opt *descriptor.ServiceOptions) *options.ApiConfig

func GetApiExtension

func GetApiExtension(opt *descriptor.MethodOptions) *options.LazyApi

func GetApiRouteExtension

func GetApiRouteExtension(opt *descriptor.ServiceOptions) string

func GetDaoExtension

func GetDaoExtension(opt *descriptor.MessageOptions) *options.DaoOptions

func GetMessageName

func GetMessageName(str string) string

func GetSvcExtension

func GetSvcExtension(opt *descriptor.MethodOptions) *options.ServiceImp

Types

type Api

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

type DaoPlugin

type DaoPlugin struct {
	*generator.Generator
	// contains filtered or unexported fields
}

func (*DaoPlugin) DbSelect

func (p *DaoPlugin) DbSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

func (*DaoPlugin) Delete

func (p *DaoPlugin) Delete(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

func (*DaoPlugin) Exec

func (p *DaoPlugin) Exec(sql *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

func (*DaoPlugin) Generate

func (p *DaoPlugin) Generate(file *generator.FileDescriptor)

func (*DaoPlugin) GenerateImports

func (p *DaoPlugin) GenerateImports(file *generator.FileDescriptor)

func (*DaoPlugin) Init

func (p *DaoPlugin) Init(g *generator.Generator)

func (*DaoPlugin) Insert

func (p *DaoPlugin) Insert(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

func (*DaoPlugin) Name

func (p *DaoPlugin) Name() string

Name identifies the plugin

func (*DaoPlugin) OrmSelect

func (p *DaoPlugin) OrmSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

func (*DaoPlugin) Update

func (p *DaoPlugin) Update(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)

type SvcPlugin

type SvcPlugin struct {
	*generator.Generator
	// contains filtered or unexported fields
}

func (*SvcPlugin) Generate

func (p *SvcPlugin) Generate(file *generator.FileDescriptor)

func (*SvcPlugin) GenerateImports

func (p *SvcPlugin) GenerateImports(file *generator.FileDescriptor)

func (*SvcPlugin) Init

func (p *SvcPlugin) Init(g *generator.Generator)

func (*SvcPlugin) Name

func (p *SvcPlugin) Name() string

Name identifies the plugin

type TsPlugin

type TsPlugin struct {
	*generator.Generator
	// contains filtered or unexported fields
}

func (*TsPlugin) Generate

func (p *TsPlugin) Generate(file *generator.FileDescriptor)

func (*TsPlugin) GenerateImports

func (p *TsPlugin) GenerateImports(file *generator.FileDescriptor)

func (*TsPlugin) Init

func (p *TsPlugin) Init(g *generator.Generator)

func (*TsPlugin) Name

func (p *TsPlugin) Name() string

Name identifies the plugin

Jump to

Keyboard shortcuts

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