Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimestampStart ¶
func GetTimestampStart() int64
func NewSource ¶
func NewSource(config *config.Module, checkpoint *engine.Checkpoint, databaseClient database.Client) (engine.DataSource, error)
NewSource creates a new data protocol instance
func ValidatePublicationTimestamp ¶ added in v1.2.0
ValidatePublicationTimestamp checks if a received ActivityPub message has an acceptable timestamp (within 3 months)
Types ¶
type Option ¶
type Option struct { RelayURLList []string `json:"relay_url_list"` Port int64 `json:"port"` TimestampStart int64 `json:"timestamp_start" mapstructure:"timestamp_start"` }
Option represents the configuration options for the ActivityPub client.
type State ¶
type State struct {
LastOffset int64 `json:"last_offset"`
}
State represents the state of the ActivityPub data protocol.
type Task ¶
type Task struct { Network network.Network Message activitypub.Object }
func (Task) BuildActivity ¶
func (Task) GetNetwork ¶
func (Task) GetTimestamp ¶
Click to show internal directories.
Click to hide internal directories.