Documentation ¶
Index ¶
- func NewCatalogConfig(opts ...CatalogConfigOption) catalogConfig
- func Validation()
- type AnotherStruct
- type AnotherStructOption
- type CatalogConfigOption
- type MySomeStructureBuilder
- func (b *MySomeStructureBuilder) Build() *SomeStructure
- func (b *MySomeStructureBuilder) BuildAnonimusField(v struct{ ... }) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildCField(v *bool) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildChanalsCapField(v chan []struct{ A http.Request }) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildChanalsField(v chan []struct{ A http.Request }) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildDField(v **complex128) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildMapsField(v map[chan []int]struct{ ... }) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildSlice2Field(v []map[chan int]string) *MySomeStructureBuilder
- func (b *MySomeStructureBuilder) BuildSliceField(v []map[chan int]string) *MySomeStructureBuilder
- type MyStackQueueStructBuilder
- func (b *MyStackQueueStructBuilder[T, V]) Build() *StackQueueStruct[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildAField(v stack[T]) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildBuffField(v bytes.Buffer) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildFnField(v func(**SomeStructure) AnotherStruct) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildQField(v queue[V]) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildSimpField(v T) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildStrField(v chan map[T][]V) *MyStackQueueStructBuilder[T, V]
- func (b *MyStackQueueStructBuilder[T, V]) BuildVimpField(v V) *MyStackQueueStructBuilder[T, V]
- type SomeStructure
- type SomeStructureOption
- func WithAnonimus(v struct{ ... }) SomeStructureOption
- func WithC(v *bool) SomeStructureOption
- func WithChanals(v chan []struct{ A http.Request }) SomeStructureOption
- func WithChanalsCap(v chan []struct{ A http.Request }) SomeStructureOption
- func WithD(v **complex128) SomeStructureOption
- func WithMaps(v map[chan []int]struct{ ... }) SomeStructureOption
- func WithSlice(v []map[chan int]string) SomeStructureOption
- func WithSlice2(v []map[chan int]string) SomeStructureOption
- type StackQueueStruct
- type StackQueueStructOption
- func WithSQSA[T comparable, V constraints.Integer](v stack[T]) StackQueueStructOption[T, V]
- func WithSQSBuff[T comparable, V constraints.Integer](v bytes.Buffer) StackQueueStructOption[T, V]
- func WithSQSFn[T comparable, V constraints.Integer](v func(**SomeStructure) AnotherStruct) StackQueueStructOption[T, V]
- func WithSQSQ[T comparable, V constraints.Integer](v queue[V]) StackQueueStructOption[T, V]
- func WithSQSSimp[T comparable, V constraints.Integer](v T) StackQueueStructOption[T, V]
- func WithSQSStr[T comparable, V constraints.Integer](v chan map[T][]V) StackQueueStructOption[T, V]
- func WithSQSVimp[T comparable, V constraints.Integer](v V) StackQueueStructOption[T, V]
- type StackStruct
- type StructEmbedding
- type StructEmbeddingBuilder
- func (b *StructEmbeddingBuilder[T, V]) Build() StructEmbedding[T, V]
- func (b *StructEmbeddingBuilder[T, V]) EmbeddedPrivateInterface(v embeddedPrivateInterface) *StructEmbeddingBuilder[T, V]
- func (b *StructEmbeddingBuilder[T, V]) ExternalEmbeddedInterface(v common.ExternalEmbeddedInterface) *StructEmbeddingBuilder[T, V]
- func (b *StructEmbeddingBuilder[T, V]) PrivateEmbedded(v privateEmbedded) *StructEmbeddingBuilder[T, V]
- func (b *StructEmbeddingBuilder[T, V]) SomeStruct(v *common.SomeStruct) *StructEmbeddingBuilder[T, V]
- func (b *StructEmbeddingBuilder[T, V]) SomeStructure(v SomeStructure) *StructEmbeddingBuilder[T, V]
- type StructEmbeddingOption
- func WithEmbeddedPrivateInterface[T comparable, V constraints.Integer](v embeddedPrivateInterface) StructEmbeddingOption[T, V]
- func WithExternalEmbeddedInterface[T comparable, V constraints.Integer](v common.ExternalEmbeddedInterface) StructEmbeddingOption[T, V]
- func WithPrivateEmbedded[T comparable, V constraints.Integer](v privateEmbedded) StructEmbeddingOption[T, V]
- func WithSomeStruct[T comparable, V constraints.Integer](v *common.SomeStruct) StructEmbeddingOption[T, V]
- func WithSomeStructure[T comparable, V constraints.Integer](v SomeStructure) StructEmbeddingOption[T, V]
- type TheThirdStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCatalogConfig ¶ added in v0.1.3
func NewCatalogConfig(opts ...CatalogConfigOption) catalogConfig
func Validation ¶
func Validation()
Types ¶
type AnotherStruct ¶
type AnotherStruct struct {
// contains filtered or unexported fields
}
AnotherStruct for testing base constructor options Annotations:
@Constructor(name="NewAnotherStructOverride", type="pointer") @Optional(constructor="New{{ .TypeName }}Optional")
func NewAnotherStructOptional ¶
func NewAnotherStructOptional(opts ...AnotherStructOption) AnotherStruct
func NewAnotherStructOverride ¶
func NewAnotherStructOverride(a SomeStructure, b *SomeStructure, buff bytes.Buffer, fn func(**SomeStructure) AnotherStruct) *AnotherStruct
type AnotherStructOption ¶
type AnotherStructOption func(*AnotherStruct)
func WithA ¶
func WithA(v SomeStructure) AnotherStructOption
func WithB ¶
func WithB(v *SomeStructure) AnotherStructOption
func WithBuff ¶
func WithBuff(v bytes.Buffer) AnotherStructOption
func WithFn ¶
func WithFn(v func(**SomeStructure) AnotherStruct) AnotherStructOption
type CatalogConfigOption ¶ added in v0.1.3
type CatalogConfigOption func(*catalogConfig)
func WithBaseURL ¶ added in v0.1.3
func WithBaseURL(v string) CatalogConfigOption
func WithOAuthKey ¶ added in v0.1.3
func WithOAuthKey(v string) CatalogConfigOption
func WithOAuthSecret ¶ added in v0.1.3
func WithOAuthSecret(v string) CatalogConfigOption
func WithPassword ¶ added in v0.1.3
func WithPassword(v string) CatalogConfigOption
func WithUserAgent ¶ added in v0.1.3
func WithUserAgent(v string) CatalogConfigOption
func WithUsername ¶ added in v0.1.3
func WithUsername(v string) CatalogConfigOption
type MySomeStructureBuilder ¶
type MySomeStructureBuilder struct {
// contains filtered or unexported fields
}
func NewSomeStructureBuilder ¶
func NewSomeStructureBuilder() *MySomeStructureBuilder
func (*MySomeStructureBuilder) Build ¶
func (b *MySomeStructureBuilder) Build() *SomeStructure
func (*MySomeStructureBuilder) BuildAnonimusField ¶
func (b *MySomeStructureBuilder) BuildAnonimusField(v struct { a int b float64 }) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildCField ¶
func (b *MySomeStructureBuilder) BuildCField(v *bool) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildChanalsCapField ¶
func (b *MySomeStructureBuilder) BuildChanalsCapField(v chan []struct{ A http.Request }) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildChanalsField ¶
func (b *MySomeStructureBuilder) BuildChanalsField(v chan []struct{ A http.Request }) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildDField ¶
func (b *MySomeStructureBuilder) BuildDField(v **complex128) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildMapsField ¶
func (b *MySomeStructureBuilder) BuildMapsField(v map[chan []int]struct{ A http.Request }) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildSlice2Field ¶
func (b *MySomeStructureBuilder) BuildSlice2Field(v []map[chan int]string) *MySomeStructureBuilder
func (*MySomeStructureBuilder) BuildSliceField ¶
func (b *MySomeStructureBuilder) BuildSliceField(v []map[chan int]string) *MySomeStructureBuilder
type MyStackQueueStructBuilder ¶
type MyStackQueueStructBuilder[T comparable, V constraints.Integer] struct { // contains filtered or unexported fields }
func NewStackQueueStructBuilder ¶
func NewStackQueueStructBuilder[T comparable, V constraints.Integer]() *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) Build ¶
func (b *MyStackQueueStructBuilder[T, V]) Build() *StackQueueStruct[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildAField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildAField(v stack[T]) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildBuffField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildBuffField(v bytes.Buffer) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildFnField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildFnField(v func(**SomeStructure) AnotherStruct) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildQField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildQField(v queue[V]) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildSimpField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildSimpField(v T) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildStrField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildStrField(v chan map[T][]V) *MyStackQueueStructBuilder[T, V]
func (*MyStackQueueStructBuilder[T, V]) BuildVimpField ¶
func (b *MyStackQueueStructBuilder[T, V]) BuildVimpField(v V) *MyStackQueueStructBuilder[T, V]
type SomeStructure ¶
type SomeStructure struct {
// contains filtered or unexported fields
}
SomeStructure for testing base constructor options Annotations:
@Constructor(name="NewSome{{.TypeName}}ThisIsMyTemplate") @Optional(constructor="NewSome{{ .TypeName }}ThisIsMyTemplateOptional") @Builder(name="My{{.TypeName}}Builder", build="Build{{.FieldName}}Field", type="pointer")
func NewSomeSomeStructureThisIsMyTemplate ¶
func NewSomeSomeStructureThisIsMyTemplate(anonimus struct { a int b float64 }, c *bool, d **complex128) SomeStructure
func NewSomeSomeStructureThisIsMyTemplateOptional ¶
func NewSomeSomeStructureThisIsMyTemplateOptional(opts ...SomeStructureOption) SomeStructure
type SomeStructureOption ¶
type SomeStructureOption func(*SomeStructure)
func WithAnonimus ¶
func WithAnonimus(v struct { a int b float64 }) SomeStructureOption
func WithC ¶
func WithC(v *bool) SomeStructureOption
func WithChanals ¶
func WithChanals(v chan []struct{ A http.Request }) SomeStructureOption
func WithChanalsCap ¶
func WithChanalsCap(v chan []struct{ A http.Request }) SomeStructureOption
func WithD ¶
func WithD(v **complex128) SomeStructureOption
func WithSlice ¶
func WithSlice(v []map[chan int]string) SomeStructureOption
func WithSlice2 ¶
func WithSlice2(v []map[chan int]string) SomeStructureOption
type StackQueueStruct ¶
type StackQueueStruct[T comparable, V constraints.Integer] struct { // contains filtered or unexported fields }
StackQueueStruct for testing parametrized constructor options Annotations:
@Constructor(type="pointer") @Optional(constructor="New{{ .TypeName }}Optional", type="pointer", with="WithSQS{{ .FieldName }}") @Builder(name="My{{.TypeName}}Builder", build="Build{{.FieldName}}Field", type="pointer")
func NewStackQueueStruct ¶
func NewStackQueueStruct[T comparable, V constraints.Integer](a stack[T], buff bytes.Buffer, fn func(**SomeStructure) AnotherStruct, q queue[V], simp T, vimp V) *StackQueueStruct[T, V]
func NewStackQueueStructOptional ¶
func NewStackQueueStructOptional[T comparable, V constraints.Integer](opts ...StackQueueStructOption[T, V]) *StackQueueStruct[T, V]
type StackQueueStructOption ¶
type StackQueueStructOption[T comparable, V constraints.Integer] func(*StackQueueStruct[T, V])
func WithSQSA ¶
func WithSQSA[T comparable, V constraints.Integer](v stack[T]) StackQueueStructOption[T, V]
func WithSQSBuff ¶
func WithSQSBuff[T comparable, V constraints.Integer](v bytes.Buffer) StackQueueStructOption[T, V]
func WithSQSFn ¶
func WithSQSFn[T comparable, V constraints.Integer](v func(**SomeStructure) AnotherStruct) StackQueueStructOption[T, V]
func WithSQSQ ¶
func WithSQSQ[T comparable, V constraints.Integer](v queue[V]) StackQueueStructOption[T, V]
func WithSQSSimp ¶
func WithSQSSimp[T comparable, V constraints.Integer](v T) StackQueueStructOption[T, V]
func WithSQSStr ¶
func WithSQSStr[T comparable, V constraints.Integer](v chan map[T][]V) StackQueueStructOption[T, V]
func WithSQSVimp ¶
func WithSQSVimp[T comparable, V constraints.Integer](v V) StackQueueStructOption[T, V]
type StackStruct ¶
type StackStruct[T stack[T]] struct {
// contains filtered or unexported fields
}
StackStruct for testing parametrized constructor options Annotations:
@Constructor
func NewStackStruct ¶
func NewStackStruct[T stack[T]](a stack[T], fn func(**SomeStructure) AnotherStruct, q queue[stack[T]]) StackStruct[T]
type StructEmbedding ¶
type StructEmbedding[T comparable, V constraints.Integer] struct { *StackQueueStruct[T, V] // @Exclude SomeStructure *AnotherStruct // @Exclude *common.SomeStruct common.ExternalEmbeddedInterface Value int // @Exclude // contains filtered or unexported fields }
@Constructor(name="NewEmbeddingConstructorExample") @Builder @Optional
func NewEmbeddingConstructorExample ¶
func NewEmbeddingConstructorExample[T comparable, V constraints.Integer](ExternalEmbeddedInterface common.ExternalEmbeddedInterface, SomeStruct *common.SomeStruct, SomeStructure SomeStructure, embeddedPrivateInterface embeddedPrivateInterface, privateEmbedded privateEmbedded) StructEmbedding[T, V]
func NewStructEmbedding ¶
func NewStructEmbedding[T comparable, V constraints.Integer](opts ...StructEmbeddingOption[T, V]) StructEmbedding[T, V]
type StructEmbeddingBuilder ¶
type StructEmbeddingBuilder[T comparable, V constraints.Integer] struct { // contains filtered or unexported fields }
func NewStructEmbeddingBuilder ¶
func NewStructEmbeddingBuilder[T comparable, V constraints.Integer]() *StructEmbeddingBuilder[T, V]
func (*StructEmbeddingBuilder[T, V]) Build ¶
func (b *StructEmbeddingBuilder[T, V]) Build() StructEmbedding[T, V]
func (*StructEmbeddingBuilder[T, V]) EmbeddedPrivateInterface ¶
func (b *StructEmbeddingBuilder[T, V]) EmbeddedPrivateInterface(v embeddedPrivateInterface) *StructEmbeddingBuilder[T, V]
func (*StructEmbeddingBuilder[T, V]) ExternalEmbeddedInterface ¶
func (b *StructEmbeddingBuilder[T, V]) ExternalEmbeddedInterface(v common.ExternalEmbeddedInterface) *StructEmbeddingBuilder[T, V]
func (*StructEmbeddingBuilder[T, V]) PrivateEmbedded ¶
func (b *StructEmbeddingBuilder[T, V]) PrivateEmbedded(v privateEmbedded) *StructEmbeddingBuilder[T, V]
func (*StructEmbeddingBuilder[T, V]) SomeStruct ¶
func (b *StructEmbeddingBuilder[T, V]) SomeStruct(v *common.SomeStruct) *StructEmbeddingBuilder[T, V]
func (*StructEmbeddingBuilder[T, V]) SomeStructure ¶
func (b *StructEmbeddingBuilder[T, V]) SomeStructure(v SomeStructure) *StructEmbeddingBuilder[T, V]
type StructEmbeddingOption ¶
type StructEmbeddingOption[T comparable, V constraints.Integer] func(*StructEmbedding[T, V])
func WithEmbeddedPrivateInterface ¶
func WithEmbeddedPrivateInterface[T comparable, V constraints.Integer](v embeddedPrivateInterface) StructEmbeddingOption[T, V]
func WithExternalEmbeddedInterface ¶
func WithExternalEmbeddedInterface[T comparable, V constraints.Integer](v common.ExternalEmbeddedInterface) StructEmbeddingOption[T, V]
func WithPrivateEmbedded ¶
func WithPrivateEmbedded[T comparable, V constraints.Integer](v privateEmbedded) StructEmbeddingOption[T, V]
func WithSomeStruct ¶
func WithSomeStruct[T comparable, V constraints.Integer](v *common.SomeStruct) StructEmbeddingOption[T, V]
func WithSomeStructure ¶
func WithSomeStructure[T comparable, V constraints.Integer](v SomeStructure) StructEmbeddingOption[T, V]
type TheThirdStruct ¶
type TheThirdStruct struct {
// contains filtered or unexported fields
}
TheThirdStruct for testing base constructor options Annotations:
@Constructor
func NewTheThirdStruct ¶
func NewTheThirdStruct(a SomeStructure, b *SomeStructure, c int, d int, fn func(**SomeStructure) AnotherStruct) TheThirdStruct
Click to show internal directories.
Click to hide internal directories.