Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct{}
Db is the standard "db"-tag
func (Db) GenerateTag ¶
func (t Db) GenerateTag(db contract.IDatabases, column object_model.Column) string
GenerateTag for Db to satisfy the Tagger interface
type Mastermind ¶
type Mastermind struct{}
Mastermind represents the Masterminds/structable "stbl"-tag
func (Mastermind) GenerateTag ¶
func (t Mastermind) GenerateTag(db contract.IDatabases, column object_model.Column) string
GenerateTag for Mastermind to satisfy the Tagger interface
type Tagger ¶
type Tagger interface {
GenerateTag(db contract.IDatabases, column object_model.Column) string
}
Tagger interface for types of struct-tages
type Taggers ¶
type Taggers struct {
// contains filtered or unexported fields
}
Taggers represents the supported tags to generate.
func NewTaggers ¶
func NewTaggers(s *configurations.Settings) *Taggers
NewTaggers is the constructor function to create the supported taggers.
func (*Taggers) GenerateTag ¶
func (t *Taggers) GenerateTag(db contract.IDatabases, column object_model.Column) (tags string)
GenerateTag creates based on the enabled tags and the given database_i_o_service and column the tag for the struct field.
Click to show internal directories.
Click to hide internal directories.