codegen

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseMongoImports = map[string]string{
	"context": "",
}

Functions

func AddBaseMGoImports

func AddBaseMGoImports(data string) (string, error)

func AddMongoImports

func AddMongoImports(data string) (string, error)

func GetFuncRender

func GetFuncRender(extractStruct *extract.IdlExtractStruct) *template.FuncRender

func GetMAggregateParams

func GetMAggregateParams() (res []code.Param)

func GetMBulkInsertParams

func GetMBulkInsertParams() (res []code.Param)

func GetMBulkUpdateParams

func GetMBulkUpdateParams() (res []code.Param)

func GetMCountParams

func GetMCountParams() (res []code.Param)

func GetMDeleteOneParams

func GetMDeleteOneParams() (res []code.Param)

func GetMFindListParams

func GetMFindListParams() (res []code.Param)

func GetMFindOneParams

func GetMFindOneParams() (res []code.Param)

func GetMFindPageListParams

func GetMFindPageListParams() (res []code.Param)

func GetMFindSortPageListParams

func GetMFindSortPageListParams() (res []code.Param)

func GetMInsertOneParams

func GetMInsertOneParams() (res []code.Param)

func GetMUpdateManyParams

func GetMUpdateManyParams() (res []code.Param)

func GetMUpdateOneParams

func GetMUpdateOneParams() (res []code.Param)

func GetStructRender

func GetStructRender(extractStruct *extract.IdlExtractStruct) *template.StructRender

func HandleBaseCodegen

func HandleBaseCodegen() []*template.MethodRender

func HandleCodegen

func HandleCodegen(ifOperations []*parse.InterfaceOperation) (methodRenders [][]*template.MethodRender)

Types

This section is empty.

Jump to

Keyboard shortcuts

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