chainv1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StorageType_name = map[int32]string{
		0: "STORAGE_TYPE_UNSPECIFIED",
		1: "STORAGE_TYPE_STANDARD_STORE",
		2: "STORAGE_TYPE_METADATA_ENCODED_STORE",
		3: "STORAGE_TYPE_KEYCHAIN_BY_PLATFORM",
	}
	StorageType_value = map[string]int32{
		"STORAGE_TYPE_UNSPECIFIED":            0,
		"STORAGE_TYPE_STANDARD_STORE":         1,
		"STORAGE_TYPE_METADATA_ENCODED_STORE": 2,
		"STORAGE_TYPE_KEYCHAIN_BY_PLATFORM":   3,
	}
)

Enum value maps for StorageType.

View Source
var File_chain_v1_chain_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IndexEntry

type IndexEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexEntry) Descriptor deprecated

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

Deprecated: Use IndexEntry.ProtoReflect.Descriptor instead.

func (*IndexEntry) GetKey

func (x *IndexEntry) GetKey() string

func (*IndexEntry) GetValue

func (x *IndexEntry) GetValue() []byte

func (*IndexEntry) ProtoMessage

func (*IndexEntry) ProtoMessage()

func (*IndexEntry) ProtoReflect

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

func (*IndexEntry) Reset

func (x *IndexEntry) Reset()

func (*IndexEntry) String

func (x *IndexEntry) String() string

type Storage

type Storage struct {
	Type         StorageType            `protobuf:"varint,1,opt,name=type,proto3,enum=chain.v1.StorageType" json:"type,omitempty"`
	ReverseIndex map[string]*IndexEntry `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Storage) Descriptor deprecated

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

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetReverseIndex

func (x *Storage) GetReverseIndex() map[string]*IndexEntry

func (*Storage) GetType

func (x *Storage) GetType() StorageType

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect

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

func (*Storage) Reset

func (x *Storage) Reset()

func (*Storage) String

func (x *Storage) String() string

type StorageType

type StorageType int32
const (
	StorageType_STORAGE_TYPE_UNSPECIFIED            StorageType = 0
	StorageType_STORAGE_TYPE_STANDARD_STORE         StorageType = 1
	StorageType_STORAGE_TYPE_METADATA_ENCODED_STORE StorageType = 2
	// https://github.com/99designs/keyring/blob/master/keyring.go#L27-L39
	StorageType_STORAGE_TYPE_KEYCHAIN_BY_PLATFORM StorageType = 3
)

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