proto

package
v0.0.0-...-50c7a8b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_broadcast_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type WakuFeedBroadcast

type WakuFeedBroadcast struct {

	// ID is a unique identifier for the feed item (e.g., tweet ID, GUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Title is a short summary or headline for the feed item.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Timestamp is the Unix time (in seconds) when the item was published.
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Link is the canonical source URL for the content (if available).
	Link string `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"`
	// ImageData holds optional raw image bytes (e.g., JPEG/PNG/WebP).
	ImageData []byte `protobuf:"bytes,5,opt,name=image_data,json=imageData,proto3" json:"image_data,omitempty"`
	// MessageHash is a SHA-256 hash of the core message fields.
	MessageHash []byte `protobuf:"bytes,6,opt,name=message_hash,json=messageHash,proto3" json:"message_hash,omitempty"`
	// SenderSignature is an optional digital signature by the publisher.
	SenderSignature []byte `protobuf:"bytes,7,opt,name=sender_signature,json=senderSignature,proto3" json:"sender_signature,omitempty"`
	// contains filtered or unexported fields
}

WakuFeedBroadcast is the payload structure sent over Waku. It is used to serialize feed items into messages that can be transmitted over the Waku network in a verifiable, structured format.

func (*WakuFeedBroadcast) Descriptor deprecated

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

Deprecated: Use WakuFeedBroadcast.ProtoReflect.Descriptor instead.

func (*WakuFeedBroadcast) GetId

func (x *WakuFeedBroadcast) GetId() string

func (*WakuFeedBroadcast) GetImageData

func (x *WakuFeedBroadcast) GetImageData() []byte
func (x *WakuFeedBroadcast) GetLink() string

func (*WakuFeedBroadcast) GetMessageHash

func (x *WakuFeedBroadcast) GetMessageHash() []byte

func (*WakuFeedBroadcast) GetSenderSignature

func (x *WakuFeedBroadcast) GetSenderSignature() []byte

func (*WakuFeedBroadcast) GetTimestamp

func (x *WakuFeedBroadcast) GetTimestamp() int64

func (*WakuFeedBroadcast) GetTitle

func (x *WakuFeedBroadcast) GetTitle() string

func (*WakuFeedBroadcast) ProtoMessage

func (*WakuFeedBroadcast) ProtoMessage()

func (*WakuFeedBroadcast) ProtoReflect

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

func (*WakuFeedBroadcast) Reset

func (x *WakuFeedBroadcast) Reset()

func (*WakuFeedBroadcast) String

func (x *WakuFeedBroadcast) String() string

Jump to

Keyboard shortcuts

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