state

package
v0.0.0-...-a4757fd Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package state is a generated protocol buffer package.

It is generated from these files:

state.proto

It has these top-level messages:

GenesisDoc
ValidatorSet
SpecialOp
SuspectPlugin
QueryCachePlugin
Plugin
State

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthState = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState   = fmt.Errorf("proto: integer overflow")
)
View Source
var Type_name = map[int32]string{
	0: "PluginNone",
	1: "PluginSpecialOp",
	2: "PluginSuspect",
	3: "PluginQueryCache",
}
View Source
var Type_value = map[string]int32{
	"PluginNone":       0,
	"PluginSpecialOp":  1,
	"PluginSuspect":    2,
	"PluginQueryCache": 3,
}

Functions

This section is empty.

Types

type GenesisDoc

type GenesisDoc struct {
	JSONData []byte `protobuf:"bytes,1,opt,name=JSONData,proto3" json:"JSONData,omitempty"`
}

func (*GenesisDoc) Descriptor

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

func (*GenesisDoc) GetJSONData

func (m *GenesisDoc) GetJSONData() []byte

func (*GenesisDoc) Marshal

func (m *GenesisDoc) Marshal() (dAtA []byte, err error)

func (*GenesisDoc) MarshalTo

func (m *GenesisDoc) MarshalTo(dAtA []byte) (int, error)

func (*GenesisDoc) ProtoMessage

func (*GenesisDoc) ProtoMessage()

func (*GenesisDoc) Reset

func (m *GenesisDoc) Reset()

func (*GenesisDoc) Size

func (m *GenesisDoc) Size() (n int)

func (*GenesisDoc) String

func (m *GenesisDoc) String() string

func (*GenesisDoc) Unmarshal

func (m *GenesisDoc) Unmarshal(dAtA []byte) error

type Plugin

type Plugin struct {
	Type  Type   `protobuf:"varint,1,opt,name=Type,proto3,enum=state.Type" json:"Type,omitempty"`
	PData []byte `protobuf:"bytes,2,opt,name=PData,proto3" json:"PData,omitempty"`
}

func (*Plugin) Descriptor

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

func (*Plugin) GetPData

func (m *Plugin) GetPData() []byte

func (*Plugin) GetType

func (m *Plugin) GetType() Type

func (*Plugin) Marshal

func (m *Plugin) Marshal() (dAtA []byte, err error)

func (*Plugin) MarshalTo

func (m *Plugin) MarshalTo(dAtA []byte) (int, error)

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) Reset

func (m *Plugin) Reset()

func (*Plugin) Size

func (m *Plugin) Size() (n int)

func (*Plugin) String

func (m *Plugin) String() string

func (*Plugin) Unmarshal

func (m *Plugin) Unmarshal(dAtA []byte) error

type QueryCachePlugin

type QueryCachePlugin struct {
	JSONData []byte `protobuf:"bytes,1,opt,name=JSONData,proto3" json:"JSONData,omitempty"`
}

func (*QueryCachePlugin) Descriptor

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

func (*QueryCachePlugin) GetJSONData

func (m *QueryCachePlugin) GetJSONData() []byte

func (*QueryCachePlugin) Marshal

func (m *QueryCachePlugin) Marshal() (dAtA []byte, err error)

func (*QueryCachePlugin) MarshalTo

func (m *QueryCachePlugin) MarshalTo(dAtA []byte) (int, error)

func (*QueryCachePlugin) ProtoMessage

func (*QueryCachePlugin) ProtoMessage()

func (*QueryCachePlugin) Reset

func (m *QueryCachePlugin) Reset()

func (*QueryCachePlugin) Size

func (m *QueryCachePlugin) Size() (n int)

func (*QueryCachePlugin) String

func (m *QueryCachePlugin) String() string

func (*QueryCachePlugin) Unmarshal

func (m *QueryCachePlugin) Unmarshal(dAtA []byte) error

type SpecialOp

type SpecialOp struct {
	JSONData []byte `protobuf:"bytes,1,opt,name=JSONData,proto3" json:"JSONData,omitempty"`
}

func (*SpecialOp) Descriptor

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

func (*SpecialOp) GetJSONData

func (m *SpecialOp) GetJSONData() []byte

func (*SpecialOp) Marshal

func (m *SpecialOp) Marshal() (dAtA []byte, err error)

func (*SpecialOp) MarshalTo

func (m *SpecialOp) MarshalTo(dAtA []byte) (int, error)

func (*SpecialOp) ProtoMessage

func (*SpecialOp) ProtoMessage()

func (*SpecialOp) Reset

func (m *SpecialOp) Reset()

func (*SpecialOp) Size

func (m *SpecialOp) Size() (n int)

func (*SpecialOp) String

func (m *SpecialOp) String() string

func (*SpecialOp) Unmarshal

func (m *SpecialOp) Unmarshal(dAtA []byte) error

type State

type State struct {
	GenesisDoc         *GenesisDoc    `protobuf:"bytes,1,opt,name=GenesisDoc" json:"GenesisDoc,omitempty"`
	ChainID            string         `protobuf:"bytes,2,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
	LastBlockHeight    int64          `protobuf:"varint,3,opt,name=LastBlockHeight,proto3" json:"LastBlockHeight,omitempty"`
	LastBlockID        *types.BlockID `protobuf:"bytes,4,opt,name=LastBlockID" json:"LastBlockID,omitempty"`
	LastBlockTime      int64          `protobuf:"varint,5,opt,name=LastBlockTime,proto3" json:"LastBlockTime,omitempty"`
	Validators         *ValidatorSet  `protobuf:"bytes,6,opt,name=Validators" json:"Validators,omitempty"`
	LastValidators     *ValidatorSet  `protobuf:"bytes,7,opt,name=LastValidators" json:"LastValidators,omitempty"`
	LastNonEmptyHeight int64          `protobuf:"varint,8,opt,name=LastNonEmptyHeight,proto3" json:"LastNonEmptyHeight,omitempty"`
	AppHash            []byte         `protobuf:"bytes,9,opt,name=AppHash,proto3" json:"AppHash,omitempty"`
	ReceiptsHash       []byte         `protobuf:"bytes,10,opt,name=ReceiptsHash,proto3" json:"ReceiptsHash,omitempty"`
}

func (*State) Descriptor

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

func (*State) GetAppHash

func (m *State) GetAppHash() []byte

func (*State) GetChainID

func (m *State) GetChainID() string

func (*State) GetGenesisDoc

func (m *State) GetGenesisDoc() *GenesisDoc

func (*State) GetLastBlockHeight

func (m *State) GetLastBlockHeight() int64

func (*State) GetLastBlockID

func (m *State) GetLastBlockID() *types.BlockID

func (*State) GetLastBlockTime

func (m *State) GetLastBlockTime() int64

func (*State) GetLastNonEmptyHeight

func (m *State) GetLastNonEmptyHeight() int64

func (*State) GetLastValidators

func (m *State) GetLastValidators() *ValidatorSet

func (*State) GetReceiptsHash

func (m *State) GetReceiptsHash() []byte

func (*State) GetValidators

func (m *State) GetValidators() *ValidatorSet

func (*State) Marshal

func (m *State) Marshal() (dAtA []byte, err error)

func (*State) MarshalTo

func (m *State) MarshalTo(dAtA []byte) (int, error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

func (m *State) Size() (n int)

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

func (m *State) Unmarshal(dAtA []byte) error

type SuspectPlugin

type SuspectPlugin struct {
	JSONData []byte `protobuf:"bytes,1,opt,name=JSONData,proto3" json:"JSONData,omitempty"`
}

func (*SuspectPlugin) Descriptor

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

func (*SuspectPlugin) GetJSONData

func (m *SuspectPlugin) GetJSONData() []byte

func (*SuspectPlugin) Marshal

func (m *SuspectPlugin) Marshal() (dAtA []byte, err error)

func (*SuspectPlugin) MarshalTo

func (m *SuspectPlugin) MarshalTo(dAtA []byte) (int, error)

func (*SuspectPlugin) ProtoMessage

func (*SuspectPlugin) ProtoMessage()

func (*SuspectPlugin) Reset

func (m *SuspectPlugin) Reset()

func (*SuspectPlugin) Size

func (m *SuspectPlugin) Size() (n int)

func (*SuspectPlugin) String

func (m *SuspectPlugin) String() string

func (*SuspectPlugin) Unmarshal

func (m *SuspectPlugin) Unmarshal(dAtA []byte) error

type Type

type Type int32
const (
	Type_PluginNone       Type = 0
	Type_PluginSpecialOp  Type = 1
	Type_PluginSuspect    Type = 2
	Type_PluginQueryCache Type = 3
)

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

type ValidatorSet

type ValidatorSet struct {
	JSONData []byte `protobuf:"bytes,2,opt,name=JSONData,proto3" json:"JSONData,omitempty"`
}

func (*ValidatorSet) Descriptor

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

func (*ValidatorSet) GetJSONData

func (m *ValidatorSet) GetJSONData() []byte

func (*ValidatorSet) Marshal

func (m *ValidatorSet) Marshal() (dAtA []byte, err error)

func (*ValidatorSet) MarshalTo

func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) Reset

func (m *ValidatorSet) Reset()

func (*ValidatorSet) Size

func (m *ValidatorSet) Size() (n int)

func (*ValidatorSet) String

func (m *ValidatorSet) String() string

func (*ValidatorSet) Unmarshal

func (m *ValidatorSet) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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