Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleRegistry = map[reflect.Type]*ModuleInitializer{}
ModuleRegistry is the registry of module initializers indexed by their golang type to avoid any issues with protobuf descriptor initialization.
Functions ¶
func GetModuleDescriptor ¶
func GetModuleDescriptor(desc protoreflect.Descriptor) (*v1alpha1.ModuleDescriptor, error)
GetModuleDescriptor returns the cosmos.app.v1alpha1.ModuleDescriptor or nil if one isn't found. Errors are returned in unexpected cases.
func ModulesByModuleTypeName ¶
func ModulesByModuleTypeName() (map[string]*ModuleInitializer, error)
ModulesByModuleTypeName should be used to retrieve modules by their module type name. This is done lazily after module registration to deal with non-deterministic issues that can occur with respect to protobuf descriptor initialization.
Types ¶
Click to show internal directories.
Click to hide internal directories.