ormv1alpha1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 28

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",
	}
	StorageType_value = map[string]int32{
		"STORAGE_TYPE_DEFAULT_UNSPECIFIED": 0,
		"STORAGE_TYPE_MEMORY":              1,
		"STORAGE_TYPE_TRANSIENT":           2,
	}
)

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 storage where all
	// data is stored in the regular Merkle-tree backed KV-store.
	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
)

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