Documentation
¶
Index ¶
- type Content
- type Message
- func (k Message) Author() refs.Identity
- func (m Message) ComesDirectlyBefore(o Message) bool
- func (m Message) Content() Content
- func (k Message) Feed() refs.Feed
- func (m Message) Id() refs.Message
- func (m Message) IsRootMessage() bool
- func (m Message) IsZero() bool
- func (k Message) Previous() *refs.Message
- func (m Message) Raw() RawMessage
- func (k Message) Sequence() Sequence
- func (m Message) String() string
- func (k Message) Timestamp() time.Time
- type MessageWithoutId
- func (k MessageWithoutId) Author() refs.Identity
- func (m MessageWithoutId) Content() Content
- func (k MessageWithoutId) Feed() refs.Feed
- func (m MessageWithoutId) IsZero() bool
- func (k MessageWithoutId) Previous() *refs.Message
- func (m MessageWithoutId) Raw() RawMessage
- func (k MessageWithoutId) Sequence() Sequence
- func (m MessageWithoutId) String() string
- func (k MessageWithoutId) Timestamp() time.Time
- type RawContent
- type RawMessage
- type Sequence
- type UnsignedMessage
- type VerifiedRawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
func MustNewContent ¶
func MustNewContent( raw RawContent, known known.KnownMessageContent, referencedBlobs []refs.Blob, ) Content
func NewContent ¶
func NewContent( raw RawContent, known known.KnownMessageContent, referencedBlobs []refs.Blob, ) (Content, error)
func (Content) KnownContent ¶
func (c Content) KnownContent() (known.KnownMessageContent, bool)
func (Content) Raw ¶
func (c Content) Raw() RawContent
func (Content) ReferencedBlobs ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func MustNewMessage ¶
func NewMessage ¶
func NewMessageFromMessageWithoutId ¶
func NewMessageFromMessageWithoutId(id refs.Message, msgWithoutId MessageWithoutId) (Message, error)
func (Message) ComesDirectlyBefore ¶
func (Message) IsRootMessage ¶
func (Message) Raw ¶
func (m Message) Raw() RawMessage
type MessageWithoutId ¶
type MessageWithoutId struct {
// contains filtered or unexported fields
}
func MustNewMessageWithoutId ¶
func NewMessageWithoutId ¶
func (MessageWithoutId) Content ¶
func (m MessageWithoutId) Content() Content
func (MessageWithoutId) IsZero ¶
func (m MessageWithoutId) IsZero() bool
func (MessageWithoutId) Raw ¶
func (m MessageWithoutId) Raw() RawMessage
func (MessageWithoutId) String ¶
func (m MessageWithoutId) String() string
type RawContent ¶
type RawContent struct {
// contains filtered or unexported fields
}
func MustNewRawContent ¶
func MustNewRawContent(data []byte) RawContent
func NewRawContent ¶
func NewRawContent(data []byte) (RawContent, error)
func (RawContent) Bytes ¶
func (m RawContent) Bytes() []byte
func (RawContent) IsZero ¶
func (m RawContent) IsZero() bool
type RawMessage ¶
type RawMessage struct {
// contains filtered or unexported fields
}
func MustNewRawMessage ¶
func MustNewRawMessage(data []byte) RawMessage
func NewRawMessage ¶
func NewRawMessage(data []byte) (RawMessage, error)
func (RawMessage) Bytes ¶
func (m RawMessage) Bytes() []byte
func (RawMessage) IsZero ¶
func (m RawMessage) IsZero() bool
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
func MustNewSequence ¶
func NewFirstSequence ¶
func NewFirstSequence() Sequence
func NewSequence ¶
func (Sequence) ComesAfter ¶
func (Sequence) ComesDirectlyBefore ¶
type UnsignedMessage ¶
type UnsignedMessage struct {
// contains filtered or unexported fields
}
func NewUnsignedMessage ¶
func (UnsignedMessage) Content ¶
func (m UnsignedMessage) Content() RawContent
type VerifiedRawMessage ¶
type VerifiedRawMessage struct {
// contains filtered or unexported fields
}
func MustNewVerifiedRawMessage ¶
func MustNewVerifiedRawMessage(data []byte) VerifiedRawMessage
func NewVerifiedRawMessage ¶
func NewVerifiedRawMessage(data []byte) (VerifiedRawMessage, error)
func (VerifiedRawMessage) Bytes ¶
func (m VerifiedRawMessage) Bytes() []byte
func (VerifiedRawMessage) IsZero ¶
func (m VerifiedRawMessage) IsZero() bool
Click to show internal directories.
Click to hide internal directories.