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 ¶
- Variables
- type GenesisDoc
- func (*GenesisDoc) Descriptor() ([]byte, []int)
- func (m *GenesisDoc) GetJSONData() []byte
- func (m *GenesisDoc) Marshal() (dAtA []byte, err error)
- func (m *GenesisDoc) MarshalTo(dAtA []byte) (int, error)
- func (*GenesisDoc) ProtoMessage()
- func (m *GenesisDoc) Reset()
- func (m *GenesisDoc) Size() (n int)
- func (m *GenesisDoc) String() string
- func (m *GenesisDoc) Unmarshal(dAtA []byte) error
- type Plugin
- func (*Plugin) Descriptor() ([]byte, []int)
- func (m *Plugin) GetPData() []byte
- func (m *Plugin) GetType() Type
- func (m *Plugin) Marshal() (dAtA []byte, err error)
- func (m *Plugin) MarshalTo(dAtA []byte) (int, error)
- func (*Plugin) ProtoMessage()
- func (m *Plugin) Reset()
- func (m *Plugin) Size() (n int)
- func (m *Plugin) String() string
- func (m *Plugin) Unmarshal(dAtA []byte) error
- type QueryCachePlugin
- func (*QueryCachePlugin) Descriptor() ([]byte, []int)
- func (m *QueryCachePlugin) GetJSONData() []byte
- func (m *QueryCachePlugin) Marshal() (dAtA []byte, err error)
- func (m *QueryCachePlugin) MarshalTo(dAtA []byte) (int, error)
- func (*QueryCachePlugin) ProtoMessage()
- func (m *QueryCachePlugin) Reset()
- func (m *QueryCachePlugin) Size() (n int)
- func (m *QueryCachePlugin) String() string
- func (m *QueryCachePlugin) Unmarshal(dAtA []byte) error
- type SpecialOp
- func (*SpecialOp) Descriptor() ([]byte, []int)
- func (m *SpecialOp) GetJSONData() []byte
- func (m *SpecialOp) Marshal() (dAtA []byte, err error)
- func (m *SpecialOp) MarshalTo(dAtA []byte) (int, error)
- func (*SpecialOp) ProtoMessage()
- func (m *SpecialOp) Reset()
- func (m *SpecialOp) Size() (n int)
- func (m *SpecialOp) String() string
- func (m *SpecialOp) Unmarshal(dAtA []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAppHash() []byte
- func (m *State) GetChainID() string
- func (m *State) GetGenesisDoc() *GenesisDoc
- func (m *State) GetLastBlockHeight() int64
- func (m *State) GetLastBlockID() *types.BlockID
- func (m *State) GetLastBlockTime() int64
- func (m *State) GetLastNonEmptyHeight() int64
- func (m *State) GetLastValidators() *ValidatorSet
- func (m *State) GetReceiptsHash() []byte
- func (m *State) GetValidators() *ValidatorSet
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- type SuspectPlugin
- func (*SuspectPlugin) Descriptor() ([]byte, []int)
- func (m *SuspectPlugin) GetJSONData() []byte
- func (m *SuspectPlugin) Marshal() (dAtA []byte, err error)
- func (m *SuspectPlugin) MarshalTo(dAtA []byte) (int, error)
- func (*SuspectPlugin) ProtoMessage()
- func (m *SuspectPlugin) Reset()
- func (m *SuspectPlugin) Size() (n int)
- func (m *SuspectPlugin) String() string
- func (m *SuspectPlugin) Unmarshal(dAtA []byte) error
- type Type
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)
- func (m *ValidatorSet) GetJSONData() []byte
- func (m *ValidatorSet) Marshal() (dAtA []byte, err error)
- func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error)
- func (*ValidatorSet) ProtoMessage()
- func (m *ValidatorSet) Reset()
- func (m *ValidatorSet) Size() (n int)
- func (m *ValidatorSet) String() string
- func (m *ValidatorSet) Unmarshal(dAtA []byte) error
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) 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) ProtoMessage ¶
func (*Plugin) ProtoMessage()
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) 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) GetJSONData ¶
func (*SpecialOp) ProtoMessage ¶
func (*SpecialOp) ProtoMessage()
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) GetAppHash ¶
func (*State) GetChainID ¶
func (*State) GetGenesisDoc ¶
func (m *State) GetGenesisDoc() *GenesisDoc
func (*State) GetLastBlockHeight ¶
func (*State) GetLastBlockID ¶
func (*State) GetLastBlockTime ¶
func (*State) GetLastNonEmptyHeight ¶
func (*State) GetLastValidators ¶
func (m *State) GetLastValidators() *ValidatorSet
func (*State) GetReceiptsHash ¶
func (*State) GetValidators ¶
func (m *State) GetValidators() *ValidatorSet
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
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) 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 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) 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
Click to show internal directories.
Click to hide internal directories.