Versions in this module Expand all Collapse all v0 v0.2.1 Feb 7, 2025 v0.2.0 Feb 6, 2025 Changes in this version + func AddConfigFile(path string) error + func CloneConfig[T Brick](liveID ...string) (newLiveID string) + func GetOrCreate[T Brick](liveID ...string) T + func Get[T Brick](liveID ...string) T + func RandomLiveID() string + func RegisterLiveIDType[T Brick](liveID string) + func RegisterLives[T BrickLives]() + func RegisterNewer[T BrickNewer]() + func Register[T Brick]() + func SetLiveIDConstraint(constraint bool) + type Brick interface + BrickTypeID func() string + type BrickConfig struct + Config any + LiveID string + TypeID string + type BrickFileConfig struct + Lives []struct{ ... } + MetaData struct{ ... } + type BrickLives interface + BrickLives func() []Live + type BrickManager struct + func (b *BrickManager) AddConfigFile(path string) error + func (b *BrickManager) RegisterLiveIDType(liveID string, reflectType reflect.Type) + type BrickNewer interface + NewBrick func(jsonConfig []byte) Brick + type Live struct + LiveID string + RelyLives map[string]string + type RegisterBrickParam struct + BrickFactory func(jsonConf []byte) Brick + Lives []Live + ReflectType reflect.Type + TypeID string + type TypeLives struct + Lives []Live + TypeID string