Documentation
¶
Index ¶
- func WriteDataPackageCode(outputPath string, orm string, projectName string, serviceName string, ...) error
- func WriteInitWireCode(outputPath string, projectName string, postfix string, services []string) error
- func WriteMainCode(outputPath string, projectName string, serviceName string, servers []string) error
- func WriteServerPackageCode(outputPath string, projectName string, serviceType string, serviceName string, ...) error
- func WriteServicePackageCode(outputPath string, projectName string, serviceName string, name string, ...) error
- func WriteServiceProto(outputPath string, serviceType string, ...) error
- func WriteServicesProto(outputPath string, serviceType string, ...) error
- func WriteWireCode(outputPath string, projectName string, serviceName string) error
- type ProtoField
- type ProtoFieldArray
- type TableDataArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDataPackageCode ¶ added in v0.0.4
func WriteInitWireCode ¶ added in v0.0.4
func WriteMainCode ¶ added in v0.0.4
func WriteServerPackageCode ¶ added in v0.0.4
func WriteServicePackageCode ¶ added in v0.0.4
func WriteServiceProto ¶ added in v0.0.4
func WriteServicesProto ¶ added in v0.0.8
func WriteServicesProto( outputPath string, serviceType string, targetModuleName, sourceModuleName, moduleVersion string, tables TableDataArray, ) error
Types ¶
type ProtoField ¶ added in v0.0.4
type ProtoField render.ProtoField
type ProtoFieldArray ¶ added in v0.0.4
type ProtoFieldArray []render.ProtoField
type TableDataArray ¶ added in v0.0.3
func Convert ¶
func Convert( ctx context.Context, dsn, outputPath *string, moduleName, sourceModuleName, moduleVersion *string, serviceType *string, includeTables, excludeTables []string, exportProto bool, ) (TableDataArray, error)
Convert converts the database schema into a protocol buffer definition.
Click to show internal directories.
Click to hide internal directories.