converter

package
v0.0.0-...-1052f9e Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CeKeyAction = "action"
View Source
const CeKeyAttachmentType = "attachmenttype"
View Source
const CeKeyAttachmentUrl = "attachmenturl"
View Source
const CeKeyAudience = "audience"
View Source
const CeKeyCategories = "categories"
View Source
const CeKeyCc = "cc"
View Source
const CeKeyDuration = "duration"
View Source
const CeKeyEnds = "ends"
View Source
const CeKeyIcon = "icon"
View Source
const CeKeyImageUrl = "imageurl"
View Source
const CeKeyInReplyTo = "inreplyto"
View Source
const CeKeyLatitude = "latitude"
View Source
const CeKeyLongitude = "longitude"
View Source
const CeKeyObject = "object"
View Source
const CeKeyObjectUrl = "objecturl"
View Source
const CeKeyPreview = "preview"
View Source
const CeKeyStarts = "starts"
View Source
const CeKeySubject = "subject"
View Source
const CeKeySummary = "summary"
View Source
const CeKeyTime = "time"
View Source
const CeKeyTo = "to"
View Source
const CeKeyUpdated = "updated"
View Source
const CeSpecVersion = "1.0"
View Source
const CeType = "com.awakari.activitypub.v1"

Variables

View Source
var ErrFail = errors.New("failed to convert")

Functions

This section is empty.

Types

type Service

type Service interface {
	Convert(ctx context.Context, actor vocab.Actor, activity vocab.Activity) (evt *pb.CloudEvent, err error)
}

func NewLogging

func NewLogging(svc Service, log *slog.Logger) Service

func NewService

func NewService() Service

Jump to

Keyboard shortcuts

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