ormv1alpha1

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	StorageType_name = map[int32]string{
		0: "STORAGE_TYPE_DEFAULT_UNSPECIFIED",
		1: "STORAGE_TYPE_MEMORY",
		2: "STORAGE_TYPE_TRANSIENT",
		3: "STORAGE_TYPE_INDEX",
		4: "STORAGE_TYPE_COMMITMENT",
	}
	StorageType_value = map[string]int32{
		"STORAGE_TYPE_DEFAULT_UNSPECIFIED": 0,
		"STORAGE_TYPE_MEMORY":              1,
		"STORAGE_TYPE_TRANSIENT":           2,
		"STORAGE_TYPE_INDEX":               3,
		"STORAGE_TYPE_COMMITMENT":          4,
	}
)

Enum value maps for StorageType.

View Source
var (
	// module_schema is used to define the ORM schema for an app module.
	// All module config messages that use module_schema must also declare
	// themselves as app module config messages using the cosmos.app.v1.is_module
	// option.
	//
	// optional cosmos.orm.v1alpha1.ModuleSchemaDescriptor module_schema = 104503792;
	E_ModuleSchema = &file_cosmos_orm_v1alpha1_schema_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_cosmos_orm_v1alpha1_schema_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ModuleSchemaDescriptor

type ModuleSchemaDescriptor struct {
	SchemaFile []*ModuleSchemaDescriptor_FileEntry `protobuf:"bytes,1,rep,name=schema_file,json=schemaFile,proto3" json:"schema_file,omitempty"`
	// prefix is an optional prefix that precedes all keys in this module's
	// store.
	Prefix []byte `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

ModuleSchemaDescriptor describe's a module's ORM schema.

func (*ModuleSchemaDescriptor) Descriptor deprecated

func (*ModuleSchemaDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use ModuleSchemaDescriptor.ProtoReflect.Descriptor instead.

func (*ModuleSchemaDescriptor) GetPrefix

func (x *ModuleSchemaDescriptor) GetPrefix() []byte

func (*ModuleSchemaDescriptor) GetSchemaFile

func (*ModuleSchemaDescriptor) ProtoMessage

func (*ModuleSchemaDescriptor) ProtoMessage()

func (*ModuleSchemaDescriptor) ProtoReflect

func (x *ModuleSchemaDescriptor) ProtoReflect() protoreflect.Message

func (*ModuleSchemaDescriptor) Reset

func (x *ModuleSchemaDescriptor) Reset()

func (*ModuleSchemaDescriptor) String

func (x *ModuleSchemaDescriptor) String() string

type ModuleSchemaDescriptor_FileEntry

type ModuleSchemaDescriptor_FileEntry struct {

	// id is a prefix that will be varint encoded and prepended to all the
	// table keys specified in the file's tables.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// proto_file_name is the name of a file .proto in that contains
	// table definitions. The .proto file must be in a package that the
	// module has referenced using cosmos.app.v1.ModuleDescriptor.use_package.
	ProtoFileName string `protobuf:"bytes,2,opt,name=proto_file_name,json=protoFileName,proto3" json:"proto_file_name,omitempty"`
	// storage_type optionally indicates the type of storage this file's
	// tables should used. If it is left unspecified, the default KV-storage
	// of the app will be used.
	StorageType StorageType `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

FileEntry describes an ORM file used in a module.

func (*ModuleSchemaDescriptor_FileEntry) Descriptor deprecated

func (*ModuleSchemaDescriptor_FileEntry) Descriptor() ([]byte, []int)

Deprecated: Use ModuleSchemaDescriptor_FileEntry.ProtoReflect.Descriptor instead.

func (*ModuleSchemaDescriptor_FileEntry) GetId

func (*ModuleSchemaDescriptor_FileEntry) GetProtoFileName

func (x *ModuleSchemaDescriptor_FileEntry) GetProtoFileName() string

func (*ModuleSchemaDescriptor_FileEntry) GetStorageType

func (x *ModuleSchemaDescriptor_FileEntry) GetStorageType() StorageType

func (*ModuleSchemaDescriptor_FileEntry) ProtoMessage

func (*ModuleSchemaDescriptor_FileEntry) ProtoMessage()

func (*ModuleSchemaDescriptor_FileEntry) ProtoReflect

func (*ModuleSchemaDescriptor_FileEntry) Reset

func (*ModuleSchemaDescriptor_FileEntry) String

type StorageType

type StorageType int32

StorageType

const (
	// STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent
	// KV-storage where primary key entries are stored in merkle-tree
	// backed commitment storage and indexes and seqs are stored in
	// fast index storage. Note that the Cosmos SDK before store/v2alpha1
	// does not support this.
	StorageType_STORAGE_TYPE_DEFAULT_UNSPECIFIED StorageType = 0
	// STORAGE_TYPE_MEMORY indicates in-memory storage that will be
	// reloaded every time an app restarts. Tables with this type of storage
	// will by default be ignored when importing and exporting a module's
	// state from JSON.
	StorageType_STORAGE_TYPE_MEMORY StorageType = 1
	// STORAGE_TYPE_TRANSIENT indicates transient storage that is reset
	// at the end of every block. Tables with this type of storage
	// will by default be ignored when importing and exporting a module's
	// state from JSON.
	StorageType_STORAGE_TYPE_TRANSIENT StorageType = 2
	// STORAGE_TYPE_INDEX indicates persistent storage which is not backed
	// by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK
	// before store/v2alpha1 does not support this.
	StorageType_STORAGE_TYPE_INDEX StorageType = 3
	// STORAGE_TYPE_INDEX indicates persistent storage which is backed by
	// a merkle-tree. With this type of storage, both primary and index keys
	// will affect the app hash and this is generally less efficient
	// than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index
	// keys into index storage. Note that modules built with the
	// Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT
	// instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX
	// because this is the only type of persistent storage available.
	StorageType_STORAGE_TYPE_COMMITMENT StorageType = 4
)

func (StorageType) Descriptor

func (StorageType) Enum

func (x StorageType) Enum() *StorageType

func (StorageType) EnumDescriptor deprecated

func (StorageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StorageType.Descriptor instead.

func (StorageType) Number

func (x StorageType) Number() protoreflect.EnumNumber

func (StorageType) String

func (x StorageType) String() string

func (StorageType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL