Documentation
¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetPayload() *Payload
- func (m *Message) GetType() Message_Type
- func (m *Message) GetVersion() string
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Type
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetData() []byte
- func (m *Payload) GetOk() bool
- func (m *Payload) Marshal() (dAtA []byte, err error)
- func (m *Payload) MarshalTo(dAtA []byte) (int, error)
- func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) Size() (n int)
- func (m *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
View Source
var Message_Type_name = map[int32]string{
0: "APPCHAIN_REGISTER",
1: "APPCHAIN_UPDATE",
2: "APPCHAIN_GET",
3: "INTERCHAIN_META_GET",
4: "RULE_DEPLOY",
5: "IBTP_GET",
6: "IBTP_SEND",
7: "IBTP_RECEIPT_SEND",
8: "ACK",
}
View Source
var Message_Type_value = map[string]int32{
"APPCHAIN_REGISTER": 0,
"APPCHAIN_UPDATE": 1,
"APPCHAIN_GET": 2,
"INTERCHAIN_META_GET": 3,
"RULE_DEPLOY": 4,
"IBTP_GET": 5,
"IBTP_SEND": 6,
"IBTP_RECEIPT_SEND": 7,
"ACK": 8,
}
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type Message_Type `protobuf:"varint,1,opt,name=type,proto3,enum=peermgr.Message_Type" json:"type,omitempty"` Payload *Payload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (*Message) GetType ¶
func (m *Message) GetType() Message_Type
func (*Message) GetVersion ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Message_Type ¶
type Message_Type int32
const ( Message_APPCHAIN_REGISTER Message_Type = 0 Message_APPCHAIN_UPDATE Message_Type = 1 Message_APPCHAIN_GET Message_Type = 2 Message_INTERCHAIN_META_GET Message_Type = 3 Message_RULE_DEPLOY Message_Type = 4 Message_IBTP_GET Message_Type = 5 Message_IBTP_SEND Message_Type = 6 Message_IBTP_RECEIPT_SEND Message_Type = 7 Message_ACK Message_Type = 8 )
func (Message_Type) EnumDescriptor ¶
func (Message_Type) EnumDescriptor() ([]byte, []int)
func (Message_Type) String ¶
func (x Message_Type) String() string
type Payload ¶
type Payload struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payload) Descriptor ¶
func (*Payload) MarshalToSizedBuffer ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) XXX_DiscardUnknown ¶
func (m *Payload) XXX_DiscardUnknown()
func (*Payload) XXX_Marshal ¶
func (*Payload) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.