Documentation ¶
Index ¶
Constants ¶
View Source
const BackQuote = "`"
View Source
const EntityTemplate = `` /* 774-byte string literal not displayed */
View Source
const TableTemplate = `` /* 2306-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityField ¶
type GenerateOption ¶ added in v0.1.12
type GenerateOption func(o *Options)
func WithBinaryMarshaller ¶ added in v0.1.12
func WithBinaryMarshaller() GenerateOption
func WithEntityPackage ¶ added in v0.1.12
func WithEntityPackage(name string) GenerateOption
func WithPackageName ¶ added in v0.1.12
func WithPackageName(name string) GenerateOption
func WithTableNamePrefix ¶ added in v0.1.12
func WithTableNamePrefix(prefix string) GenerateOption
func WithTablePackage ¶ added in v0.1.12
func WithTablePackage(name string) GenerateOption
type Output ¶
type Outputs ¶
type Outputs []Output
func Generate ¶
func Generate(ctx context.Context, src SchemaSource, opt ...GenerateOption) (Outputs, error)
type Param ¶
type Param struct { PackageName string EntityName string TableName string TableFullName string EntitiesName string Fields []EntityField Keys []EntityKey BackQuote string EntityPackage string TablePackage string SecondaryIndexes []SecondaryIndex Receiver string BinaryMarshaller bool TimeToLive *TimeToLive }
type SchemaSource ¶
type SchemasSource ¶
func (SchemasSource) GetSchemas ¶
type SecondaryIndex ¶
type TimeToLive ¶ added in v0.1.12
Click to show internal directories.
Click to hide internal directories.