parser

package
v0.0.0-...-4c68550 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeUnknownBool

func ExcludeUnknownBool(unknownProps map[string]interface{}, key string) (bool, error)

func ExcludeUnknownNullTime

func ExcludeUnknownNullTime(unknownProps map[string]interface{}, key string) sql.NullTime

func ExcludeUnknownString

func ExcludeUnknownString(unknownProps map[string]interface{}, key string) (string, error)

func ExcludeUnknownTime

func ExcludeUnknownTime(unknownProps map[string]interface{}, key string) (*time.Time, error)

func ExcludeUnknownUint

func ExcludeUnknownUint(unknownProps map[string]interface{}, key string) (uint, error)

func ExcludeUnknownUuid

func ExcludeUnknownUuid(unknownProps map[string]interface{}, key string) (*uuid.UUID, error)

func ExtractActorURI

func ExtractActorURI(withActor WithActor) (*url.URL, error)

func ExtractAttributedTo

func ExtractAttributedTo(withAttrTo WithAttributedTo) ([]*url.URL, error)

func ExtractName

func ExtractName(withName WithName) string

func ExtractObjectURI

func ExtractObjectURI(withObject WithObject) (*url.URL, error)

func ExtractPublished

func ExtractPublished(withPublished WithPublished) time.Time

func ExtractTo

func ExtractTo(withAttrTo WithTo) ([]*url.URL, error)

Types

type ShigGuests

type ShigGuests struct {
	FirstGuest  string
	SecondGuest string
	ThirdGuest  string
}

type VideoPropertiesUnknown

type VideoPropertiesUnknown struct {
	// OriginallyPublishedAt *time.Time
	LatencyMode     uint
	Uuid            string
	State           uint
	ShigActive      bool
	Shig            *ShigGuests
	ShigInstanceUrl string
	IsLiveBroadcast bool
	PermanentLive   bool
	LiveSaveReplay  bool
}

func ExtractVideoUnknownProperties

func ExtractVideoUnknownProperties(unknownProps map[string]interface{}) (*VideoPropertiesUnknown, error)

type WithActor

type WithActor interface {
	GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
}

type WithAttributedTo

type WithAttributedTo interface {
	GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
}

type WithName

type WithName interface {
	GetActivityStreamsName() vocab.ActivityStreamsNameProperty
}

type WithObject

type WithObject interface {
	GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
}

type WithPublished

type WithPublished interface {
	GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
}

type WithTo

type WithTo interface {
	GetActivityStreamsTo() vocab.ActivityStreamsToProperty
}

type WithUnknown

type WithUnknown interface {
	GetUnknownProperties() map[string]interface{}
}

Jump to

Keyboard shortcuts

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