Documentation
¶
Index ¶
- func LoadBaseEntity() baseiface.ISingleton
- func LoadBeanProxy[T baseiface.IbaseProxy]() T
- type BaseEntity
- func (self *BaseEntity) AutoInject() bool
- func (self *BaseEntity) Autoload() bool
- func (self *BaseEntity) Autowire()
- func (self *BaseEntity) Bind()
- func (self *BaseEntity) BindUp(key string, load baseiface.LoadBean)
- func (self *BaseEntity) Clone() interface{}
- func (self *BaseEntity) ContainsStru(v any) bool
- func (self *BaseEntity) ContainsType(name string) bool
- func (self *BaseEntity) CopyWithOption(from any)
- func (self *BaseEntity) FindBinding(key string) baseiface.LoadBean
- func (self *BaseEntity) FromJsonAny(body []byte) interface{}
- func (self *BaseEntity) Id2Str(id int64) string
- func (self *BaseEntity) IfAutowire() bool
- func (self *BaseEntity) Init()
- func (self *BaseEntity) InitProxy(some any)
- func (self *BaseEntity) Log()
- func (self *BaseEntity) Parse2Map() (map[string]any, error)
- func (self *BaseEntity) Shutdown()
- func (self *BaseEntity) Single() bool
- func (self *BaseEntity) Str2Int(from string) int
- func (self *BaseEntity) String() string
- func (self *BaseEntity) ToJson() string
- func (self *BaseEntity) ToJsonBytes() []byte
- func (self *BaseEntity) ToPrettyString() string
- func (self *BaseEntity) ToString() string
- func (self *BaseEntity) ValueFrom(from any)
- func (self *BaseEntity) ValueOf(that any)
- type BaseEntityIndex
- func (b BaseEntityIndex) GetMapping() string
- func (b BaseEntityIndex) IndexAlaisName() string
- func (b BaseEntityIndex) IndexName() string
- func (b BaseEntityIndex) Mapping() string
- func (b BaseEntityIndex) PkeyName() string
- func (b BaseEntityIndex) PkeyValue() any
- func (b BaseEntityIndex) TableName() string
- type BaseEntitySingle
- type BaseProxy
- func (this *BaseProxy) AutoInject() bool
- func (this *BaseProxy) Autoload() bool
- func (self *BaseProxy) Autowire()
- func (this *BaseProxy) Check() error
- func (this *BaseProxy) Clone() any
- func (self *BaseProxy) ContainsStru(chiildStru any) bool
- func (this *BaseProxy) ContainsType(name string) bool
- func (this *BaseProxy) CopyWithOption(from any)
- func (this *BaseProxy) FromJson(body []byte) interface{}
- func (self *BaseProxy) IfAutowire() bool
- func (this *BaseProxy) IfBaseEntity() bool
- func (this *BaseProxy) Init()
- func (this *BaseProxy) Log()
- func (self *BaseProxy) Parse2Map() (map[string]any, error)
- func (this *BaseProxy) SetSome(some any)
- func (this *BaseProxy) Shutdown()
- func (this *BaseProxy) Single() bool
- func (this *BaseProxy) Some() any
- func (this *BaseProxy) String() string
- func (this *BaseProxy) ToJson() string
- func (this *BaseProxy) ToJsonBytes() []byte
- func (this *BaseProxy) ToPrettyString() string
- func (this *BaseProxy) ToString() string
- func (this *BaseProxy) ValueFrom(from any)
- func (this *BaseProxy) ValueOf(another interface{})
- type IchubError
- type IndexObjectAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBaseEntity ¶
func LoadBaseEntity() baseiface.ISingleton
func LoadBeanProxy ¶
func LoadBeanProxy[T baseiface.IbaseProxy]() T
Types ¶
type BaseEntity ¶
type BaseEntity struct {
Proxy func() *BaseProxy `json:"-"`
Bindings map[string]baseiface.LoadBean `json:"-"`
RootDir string `json:"-"`
}
func FindBeanBaseEntity ¶
func FindBeanBaseEntity() *BaseEntity
func NewBaseEntity ¶
func NewBaseEntity() *BaseEntity
func (*BaseEntity) AutoInject ¶
func (self *BaseEntity) AutoInject() bool
func (*BaseEntity) Autoload ¶
func (self *BaseEntity) Autoload() bool
func (*BaseEntity) Autowire ¶
func (self *BaseEntity) Autowire()
func (*BaseEntity) Bind ¶
func (self *BaseEntity) Bind()
func (*BaseEntity) Clone ¶
func (self *BaseEntity) Clone() interface{}
func (*BaseEntity) ContainsStru ¶
func (self *BaseEntity) ContainsStru(v any) bool
func (*BaseEntity) ContainsType ¶
func (self *BaseEntity) ContainsType(name string) bool
func (*BaseEntity) CopyWithOption ¶
func (self *BaseEntity) CopyWithOption(from any)
func (*BaseEntity) FindBinding ¶
func (self *BaseEntity) FindBinding(key string) baseiface.LoadBean
func (*BaseEntity) FromJsonAny ¶
func (self *BaseEntity) FromJsonAny(body []byte) interface{}
func (*BaseEntity) Id2Str ¶
func (self *BaseEntity) Id2Str(id int64) string
func (*BaseEntity) IfAutowire ¶
func (self *BaseEntity) IfAutowire() bool
func (*BaseEntity) Init ¶
func (self *BaseEntity) Init()
func (*BaseEntity) InitProxy ¶
func (self *BaseEntity) InitProxy(some any)
func (*BaseEntity) Log ¶
func (self *BaseEntity) Log()
func (*BaseEntity) Shutdown ¶
func (self *BaseEntity) Shutdown()
func (*BaseEntity) Single ¶
func (self *BaseEntity) Single() bool
func (*BaseEntity) Str2Int ¶
func (self *BaseEntity) Str2Int(from string) int
func (*BaseEntity) String ¶
func (self *BaseEntity) String() string
func (*BaseEntity) ToJson ¶
func (self *BaseEntity) ToJson() string
func (*BaseEntity) ToJsonBytes ¶
func (self *BaseEntity) ToJsonBytes() []byte
func (*BaseEntity) ToPrettyString ¶
func (self *BaseEntity) ToPrettyString() string
func (*BaseEntity) ToString ¶
func (self *BaseEntity) ToString() string
func (*BaseEntity) ValueFrom ¶
func (self *BaseEntity) ValueFrom(from any)
func (*BaseEntity) ValueOf ¶
func (self *BaseEntity) ValueOf(that any)
type BaseEntityIndex ¶
type BaseEntityIndex struct {
BaseEntity
}
func (BaseEntityIndex) GetMapping ¶
func (b BaseEntityIndex) GetMapping() string
func (BaseEntityIndex) IndexAlaisName ¶
func (b BaseEntityIndex) IndexAlaisName() string
func (BaseEntityIndex) IndexName ¶
func (b BaseEntityIndex) IndexName() string
func (BaseEntityIndex) Mapping ¶
func (b BaseEntityIndex) Mapping() string
func (BaseEntityIndex) PkeyName ¶
func (b BaseEntityIndex) PkeyName() string
func (BaseEntityIndex) PkeyValue ¶
func (b BaseEntityIndex) PkeyValue() any
func (BaseEntityIndex) TableName ¶
func (b BaseEntityIndex) TableName() string
type BaseEntitySingle ¶
type BaseEntitySingle struct {
BaseEntity
}
func (*BaseEntitySingle) InitProxy ¶
func (this *BaseEntitySingle) InitProxy(some any)
func (*BaseEntitySingle) Single ¶
func (this *BaseEntitySingle) Single() bool
type BaseProxy ¶
type BaseProxy struct {
// contains filtered or unexported fields
}
func NewBaseProxy ¶
func (*BaseProxy) AutoInject ¶
func (*BaseProxy) ContainsStru ¶
func (*BaseProxy) ContainsType ¶
func (*BaseProxy) CopyWithOption ¶
func (*BaseProxy) IfAutowire ¶
func (*BaseProxy) IfBaseEntity ¶
func (*BaseProxy) ToJsonBytes ¶
func (*BaseProxy) ToPrettyString ¶
type IchubError ¶
func NewIchubError ¶
func NewIchubError(code int, msg string) *IchubError
func NewIchubErrorServer ¶
func NewIchubErrorServer() *IchubError
func (*IchubError) Error ¶
func (this *IchubError) Error() string
type IndexObjectAdapter ¶
type IndexObjectAdapter struct {
baseindex.IndexMapping
}
func DefaultAdapter ¶
func DefaultAdapter(indexObject baseindex.IndexObject) *IndexObjectAdapter
func NewIndexObjectAdapter ¶
func NewIndexObjectAdapter(indexObject baseindex.IndexObject) *IndexObjectAdapter
func (IndexObjectAdapter) IndexAlaisName ¶
func (b IndexObjectAdapter) IndexAlaisName() string
func (IndexObjectAdapter) IndexName ¶
func (b IndexObjectAdapter) IndexName() string
func (IndexObjectAdapter) Mapping ¶
func (b IndexObjectAdapter) Mapping() string
Click to show internal directories.
Click to hide internal directories.