plugin

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagString = "gen"

Functions

func MargeTags

func MargeTags(tags ...*FieldTag) string

func New

func New() *dao

Types

type Field

type Field struct {
	Name       string
	Type       fieldType
	Tags       []*FieldTag
	Alias      string
	Num        int
	IsRepeated bool
	Desc       *generator.FieldDescriptor
	Map        *MapFields
	Slice      *descriptor.FieldDescriptorProto
	File       *generator.FileDescriptor
}

type FieldTag

type FieldTag struct {
	Key    string
	Values []string
	Seq    string
}

func (*FieldTag) String

func (t *FieldTag) String() string

type MapFields

type MapFields struct {
	Key   *descriptor.FieldDescriptorProto
	Value *descriptor.FieldDescriptorProto
}

type Repo added in v0.22.6

type Repo struct {
	Name    string
	PK      *Field
	MFields map[string]*Field
	Fields  []*Field
	SDField *Field
	Desc    *generator.MessageDescriptor
	Table   string
	Deep    bool
}

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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