peermgr

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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:  "ROUTER_IBTP_SEND",
	9:  "ROUTER_IBTP_RECEIPT_SEND",
	10: "ADDRESS_GET",
	11: "ROUTER_INTERCHAIN_SEND",
	12: "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,
	"ROUTER_IBTP_SEND":         8,
	"ROUTER_IBTP_RECEIPT_SEND": 9,
	"ADDRESS_GET":              10,
	"ROUTER_INTERCHAIN_SEND":   11,
	"ACK":                      12,
}

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"`
}

func (*Message) Descriptor

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

func (*Message) GetPayload

func (m *Message) GetPayload() *Payload

func (*Message) GetType

func (m *Message) GetType() Message_Type

func (*Message) GetVersion

func (m *Message) GetVersion() string

func (*Message) Marshal

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

func (*Message) MarshalTo

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

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

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

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

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

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

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_ROUTER_IBTP_SEND         Message_Type = 8
	Message_ROUTER_IBTP_RECEIPT_SEND Message_Type = 9
	Message_ADDRESS_GET              Message_Type = 10
	Message_ROUTER_INTERCHAIN_SEND   Message_Type = 11
	Message_ACK                      Message_Type = 12
)

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"`
}

func (*Payload) Descriptor

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

func (*Payload) GetData

func (m *Payload) GetData() []byte

func (*Payload) GetOk

func (m *Payload) GetOk() bool

func (*Payload) Marshal

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

func (*Payload) MarshalTo

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

func (*Payload) MarshalToSizedBuffer

func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

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

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Unmarshal

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

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

func (m *Payload) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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