fizz

package
v0.0.0-...-3df7063 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type InventoryRequest

type InventoryRequest struct {
	MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Inventory   []byte       `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
	// contains filtered or unexported fields
}

func (*InventoryRequest) Descriptor deprecated

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

Deprecated: Use InventoryRequest.ProtoReflect.Descriptor instead.

func (*InventoryRequest) GetInventory

func (x *InventoryRequest) GetInventory() []byte

func (*InventoryRequest) GetMessageData

func (x *InventoryRequest) GetMessageData() *MessageData

func (*InventoryRequest) ProtoMessage

func (*InventoryRequest) ProtoMessage()

func (*InventoryRequest) ProtoReflect

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

func (*InventoryRequest) Reset

func (x *InventoryRequest) Reset()

func (*InventoryRequest) String

func (x *InventoryRequest) String() string

type InventoryResponse

type InventoryResponse struct {
	MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Inventory   []byte       `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
	// contains filtered or unexported fields
}

func (*InventoryResponse) Descriptor deprecated

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

Deprecated: Use InventoryResponse.ProtoReflect.Descriptor instead.

func (*InventoryResponse) GetInventory

func (x *InventoryResponse) GetInventory() []byte

func (*InventoryResponse) GetMessageData

func (x *InventoryResponse) GetMessageData() *MessageData

func (*InventoryResponse) ProtoMessage

func (*InventoryResponse) ProtoMessage()

func (*InventoryResponse) ProtoReflect

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

func (*InventoryResponse) Reset

func (x *InventoryResponse) Reset()

func (*InventoryResponse) String

func (x *InventoryResponse) String() string

type MessageData

type MessageData struct {

	// shared between all requests
	ClientVersion string `protobuf:"bytes,1,opt,name=clientVersion,proto3" json:"clientVersion,omitempty"` // client version
	Timestamp     int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`        // unix time
	Id            string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`                       // allows requesters to use request data when processing a response
	Gossip        bool   `protobuf:"varint,4,opt,name=gossip,proto3" json:"gossip,omitempty"`              // true to have receiver peer gossip the message to neighbors
	NodeId        string `protobuf:"bytes,5,opt,name=nodeId,proto3" json:"nodeId,omitempty"`               // id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
	NodePubKey    []byte `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"`       // Authoring node Secp256k1 public key (32bytes) - protobufs serielized
	Sign          []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`                   // signature of message data + method specific data by message authoring node.
	// contains filtered or unexported fields
}

func (*MessageData) Descriptor deprecated

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

Deprecated: Use MessageData.ProtoReflect.Descriptor instead.

func (*MessageData) GetClientVersion

func (x *MessageData) GetClientVersion() string

func (*MessageData) GetGossip

func (x *MessageData) GetGossip() bool

func (*MessageData) GetId

func (x *MessageData) GetId() string

func (*MessageData) GetNodeId

func (x *MessageData) GetNodeId() string

func (*MessageData) GetNodePubKey

func (x *MessageData) GetNodePubKey() []byte

func (*MessageData) GetSign

func (x *MessageData) GetSign() []byte

func (*MessageData) GetTimestamp

func (x *MessageData) GetTimestamp() int64

func (*MessageData) ProtoMessage

func (*MessageData) ProtoMessage()

func (*MessageData) ProtoReflect

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

func (*MessageData) Reset

func (x *MessageData) Reset()

func (*MessageData) String

func (x *MessageData) String() string

type PingRequest

type PingRequest struct {
	MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetMessage

func (x *PingRequest) GetMessage() string

func (*PingRequest) GetMessageData

func (x *PingRequest) GetMessageData() *MessageData

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {
	MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetMessage

func (x *PingResponse) GetMessage() string

func (*PingResponse) GetMessageData

func (x *PingResponse) GetMessageData() *MessageData

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

Jump to

Keyboard shortcuts

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