aggregate

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	Type      string
	Name      string
	Table     Key
	Views     []Key
	FieldsCql map[string]string
	FieldsGo  map[string]string
	HasIndex  bool
}

type FieldArg added in v0.11.0

type FieldArg struct {
	Kind      string
	Pkg       string
	Type      string
	Name      string
	ZeroValue string
	DBKey     func(pre, post string) string
	DBPrefix  func(pre, post string) string
	HasIndex  bool
}

type Generator added in v0.5.25

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

func New added in v0.5.25

func (*Generator) Exec added in v0.11.0

func (g *Generator) Exec(t *template.Template, v interface{}) string

func (*Generator) Generate added in v0.5.25

func (g *Generator) Generate()

type Key

type Key struct {
	PKs       []string
	PKGoTypes []string
	CKs       []string
	CKGoTypes []string
	Orders    []string
	// contains filtered or unexported fields
}

func (*Key) Checksum

func (k *Key) Checksum() uint32

func (*Key) DBIterPrefix added in v0.11.0

func (k *Key) DBIterPrefix() string

func (*Key) DBKey added in v0.11.0

func (k *Key) DBKey(prefix string) string

func (*Key) DBKeyPrefix added in v0.11.0

func (k *Key) DBKeyPrefix(prefix string) string

func (*Key) FuncArgs added in v0.11.0

func (k *Key) FuncArgs(prefix string) string

func (*Key) FuncArgsCKs added in v0.11.0

func (k *Key) FuncArgsCKs(prefix string) string

func (*Key) FuncArgsPKs added in v0.11.0

func (k *Key) FuncArgsPKs(prefix string) string

func (*Key) Keys

func (k *Key) Keys() []string

func (*Key) String

func (k *Key) String(prefix string, sep string, lowerCamel bool) string

func (*Key) StringCKs

func (k *Key) StringCKs(prefix string, sep string, lowerCamel bool) string

func (*Key) StringPKs

func (k *Key) StringPKs(prefix string, sep string, lowerCamel bool) string

type ModelArg added in v0.11.0

type ModelArg struct {
	Name        string
	Pkg         string
	Type        string
	C           uint32
	HasIndex    bool
	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
	Views       []ViewArg
	Fields      []FieldArg
}

func GetArg added in v0.11.0

func GetArg(g *Generator, m *protogen.Message, agg *Aggregate) ModelArg

type ViewArg added in v0.11.0

type ViewArg 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
}

Jump to

Keyboard shortcuts

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