z

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CqlKind added in v0.3.2

func DescName

DescName return the fullname of the descriptor. i.e. package.identifier

func DescParts added in v0.10.3

DescParts returns the package and identifier name

func GoKind added in v0.3.2

func ZeroValue

func ZeroValue(f protoreflect.FieldDescriptor) string

ZeroValue returns the equal zero value based on the input type

Types

type DBArg added in v0.11.0

type DBArg struct {
	Name        string
	Keys        []string
	DBKey       func(prefix string) string
	FuncArgs    func(prefix string) string
	FuncArgsPKs func(prefix string) string
	FuncArgsCKs func(prefix string) string
	String      func(prefix string, sep string, lowerCamel bool) string
	StringPKs   func(prefix string, sep string, lowerCamel bool) string
	StringCKs   func(prefix string, sep string, lowerCamel bool) string
}

type FieldArg added in v0.11.0

type FieldArg struct {
	Name        string // Name of the field
	NameCC      string // LowerCamelCase(Name)
	Pkg         string
	Type        string
	ZeroValue   string
	Kind        string
	GoKind      string
	Cardinality string
	// contains filtered or unexported fields
}

func GetFieldArg added in v0.11.0

func GetFieldArg(file *protogen.File, gFile *protogen.GeneratedFile, f *protogen.Field) FieldArg

type MessageArg added in v0.11.0

type MessageArg struct {
	Fullname string
	Name     string
	NameCC   string // LowerCamelCase(Name)
	CName    string // ConstructorName([Pkg.]C_Name)
	Pkg      string
	C        uint32
	Fields   []FieldArg
}

func GetMessageArg added in v0.11.0

func GetMessageArg(file *protogen.File, gFile *protogen.GeneratedFile, m *protogen.Message) MessageArg

type MethodArg added in v0.11.0

type MethodArg struct {
	Name        string
	NameCC      string // LowerCamelCase(Name)
	NameKC      string // KebabCase(Name)
	Input       MessageArg
	Output      MessageArg
	RestEnabled bool
	TunnelOnly  bool
	Rest        RestArg
}

func GetMethodArg added in v0.11.0

func GetMethodArg(file *protogen.File, gFile *protogen.GeneratedFile, m *protogen.Method) MethodArg

type ModelArg added in v0.11.0

type ModelArg struct {
	Message  MessageArg
	HasIndex bool
	Table    DBArg
	Views    []DBArg
	Fields   []FieldArg
}

type ModelFieldArg added in v0.11.0

type ModelFieldArg struct {
	FieldArg
	HasIndex   bool
	DBIndexKey func(pre, post string) string
}

type RestArg added in v0.11.0

type RestArg struct {
	Method    string
	Path      string
	Json      bool
	Unmarshal bool
	ExtraCode []string
}

type ServiceArg added in v0.11.0

type ServiceArg struct {
	Name    string
	NameCC  string // LowerCamelCase(Name)
	NameKC  string // KebabCase(Name)
	C       uint32
	Methods []MethodArg
}

func GetServiceArg added in v0.11.0

func GetServiceArg(file *protogen.File, gFile *protogen.GeneratedFile, s *protogen.Service) ServiceArg

Jump to

Keyboard shortcuts

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