Documentation ¶
Index ¶
- type StructRegistryImpl
- func (r *StructRegistryImpl) NewInstance(name string) (interface{}, error)
- func (r *StructRegistryImpl) NewProtobufInstance(t string) (proto.Message, error)
- func (r *StructRegistryImpl) RegisterStruct(any interface{}) bool
- func (r *StructRegistryImpl) RegisterStructType(t reflect.Type) bool
- func (r *StructRegistryImpl) TypeByName(name string) (reflect.Type, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructRegistryImpl ¶
type StructRegistryImpl struct {
// contains filtered or unexported fields
}
func NewStructRegistry ¶
func NewStructRegistry() *StructRegistryImpl
func (*StructRegistryImpl) NewInstance ¶
func (r *StructRegistryImpl) NewInstance(name string) (interface{}, error)
func (*StructRegistryImpl) NewProtobufInstance ¶
func (r *StructRegistryImpl) NewProtobufInstance(t string) (proto.Message, error)
func (*StructRegistryImpl) RegisterStruct ¶
func (r *StructRegistryImpl) RegisterStruct(any interface{}) bool
func (*StructRegistryImpl) RegisterStructType ¶
func (r *StructRegistryImpl) RegisterStructType(t reflect.Type) bool
func (*StructRegistryImpl) TypeByName ¶
func (r *StructRegistryImpl) TypeByName(name string) (reflect.Type, error)
Click to show internal directories.
Click to hide internal directories.