shared

package
v0.0.0-...-05a6c0c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceInboundAppNet    = "appnet"    // app.net
	ServiceInboundAtom1     = "atom1.0"   // Atom Syndication Format version 1.
	ServiceInboundGNUSocial = "gnusocial" // GNU social
	ServiceInboundIMAP      = "imap"      // Internet Message Access Protocol (IMAP) — defined in IETF RFC 9051. (An e-mail receiving protocol.)
	ServiceInboundPnut      = "pnut"      // pnut.io
	ServiceInboundPOP3      = "pop3"      // Post Office Protocol version 3 (POP3). (An e-mail receiving protocol.)
	ServiceInboundPumpIO    = "pumpio"    // pump.io
	ServiceInboundRSS2      = "rss2.0"    // Really Simple Syndication (RSS) version 2
	ServiceInboundTwitter   = "twitter"   // Twitter. Later renamed to 'X'.
	ServiceInboundZot       = "zot"       // Zot!
)
View Source
const (
	ServiceOutboundAppNet        = "appnet"
	ServiceOutboundAtom1         = "atom1.0"
	ServiceOutboundBlogger       = "blogger"
	ServiceOutboundBuddycloud    = "buddycloud"
	ServiceOutboundDiaspora      = "diaspora"
	ServiceOutboundDreamwidth    = "dreamwidth"
	ServiceOutboundDrupal        = "drupal"
	ServiceOutboundFacebook      = "facebook"
	ServiceOutboundFriendica     = "friendica"
	ServiceOutboundGNUSocial     = "gnusocial"
	ServiceOutboundGoogle        = "google"
	ServiceOutboundInsaneJournal = "insanejournal"
	ServiceOutboundLibertree     = "libertree"
	ServiceOutboundLinkedIn      = "linkedin"
	ServiceOutboundLiveJournal   = "livejournal"
	ServiceOutboundMediaGoblin   = "mediagoblin"
	ServiceOutboundMySpace       = "myspace"
	ServiceOutboundPinterest     = "pinterest"
	ServiceOutboundPnut          = "pnut"
	ServiceOutboundPosterous     = "posterous"
	ServiceOutboundPumpIO        = "pumpio"
	ServiceOutboundRedMatrix     = "redmatrix"
	ServiceOutboundRSS2          = "rss2.0"
	ServiceOutboundSMTP          = "smtp"
	ServiceOutboundTent          = "tent"
	ServiceOutboundTumblr        = "tumblr"
	ServiceOutboundTwitter       = "twitter"
	ServiceOutboundWordPress     = "wordpress"
	ServiceOutboundXMPP          = "xmpp"
	ServiceOutboundZot           = "zot"
)
View Source
const (
	ProtocolActivityPub = "activitypub"
	ProtocolBuddycloud  = "buddycloud"
	ProtocolDFRN        = "dfrn"
	ProtocolDiaspora    = "diaspora"
	ProtocolFriendica   = "friendica"
	ProtocolGNUSocial   = "gnusocial"
	ProtocolLiberTree   = "libertree"
	ProtocolMediaGoblin = "mediagoblin"
	ProtocolNostr       = "nostr"
	ProtocolOStatus     = "ostatus"
	ProtocolPumpIO      = "pumpio"
	ProtocolRedMatrix   = "redmatrix"
	ProtocolSMTP        = "smtp"
	ProtocolTent        = "tent"
	ProtocolXMPP        = "xmpp"
	ProtocolZot         = "zot"
)
View Source
const (
	SoftwareNameDiaspora  = "diaspora"
	SoftwareNameFriendica = "friendica"
	SoftwareNameHubzilla  = "hubzilla"
	SoftwareNameRedMatrix = "redmatrix"
)

Variables

View Source
var (
	// ServerText is the Server (name) used by any (internal) HTTP-server in this package when making an HTTP-response to any client.
	// This can be changed to customize the User-Agent sent.
	//
	// For example:
	//
	//	import "codeberg.org/reiver/go-nodeinfo"
	//
	//	// ...
	//
	//	nodeinfo.SetServerText("Example/1.0")
	ServerText = "(reiver-nodeinfo)"
)
View Source
var (
	// UserAgentText is the User-Agent used by any (internal) HTTP-client in this package when making an HTTP-request to any server.
	// This can be changed to customize the User-Agent sent.
	//
	// For example:
	//
	//	import "codeberg.org/reiver/go-nodeinfo"
	//
	//	// ...
	//
	//	nodeinfo.SetUserAgentText("ExampleAppt/2.71 (+http://example.com/example-app)")
	UserAgentText = "reiver-nodeinfo/0.0 (+https://codeberg.org/reiver/go-nodeinfo)"
)

Functions

This section is empty.

Types

type Instance2Dot2

type Instance2Dot2 struct {
	Name        opt.Optional[string]
	Description opt.Optional[string]
}

func (Instance2Dot2) MarshalJSON

func (receiver Instance2Dot2) MarshalJSON() ([]byte, error)

type Protocols1

type Protocols1 struct {
	Inbound  []string
	Outbound []string
}

func (Protocols1) MarshalJSON

func (receiver Protocols1) MarshalJSON() ([]byte, error)

type Services1

type Services1 struct {
	Inbound  []string
	Outbound []string
}

func (Services1) MarshalJSON

func (receiver Services1) MarshalJSON() ([]byte, error)

type Software1

type Software1 struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Software2Dot1

type Software2Dot1 struct {
	Name       string
	Version    string
	Repository opt.Optional[string]
	HomePage   opt.Optional[string]
}

func (Software2Dot1) MarshalJSON

func (receiver Software2Dot1) MarshalJSON() ([]byte, error)

type Usage1

type Usage1 struct {
	Users         Users1
	LocalPosts    opt.Optional[string]
	LocalComments opt.Optional[string]
}

func (Usage1) MarshalJSON

func (receiver Usage1) MarshalJSON() ([]byte, error)

type Usage2Dot2

type Usage2Dot2 struct {
	Users         Users2Dot2
	LocalPosts    opt.Optional[string]
	LocalComments opt.Optional[string]
}

func (Usage2Dot2) MarshalJSON

func (receiver Usage2Dot2) MarshalJSON() ([]byte, error)

type Users1

type Users1 struct {
	Total          opt.Optional[string]
	ActiveHalfYear opt.Optional[string]
	ActiveMonth    opt.Optional[string]
}

func (Users1) MarshalJSON

func (receiver Users1) MarshalJSON() ([]byte, error)

type Users2Dot2

type Users2Dot2 struct {
	Total          opt.Optional[string]
	ActiveHalfYear opt.Optional[string]
	ActiveMonth    opt.Optional[string]
	ActiveWeek     opt.Optional[string]
}

func (Users2Dot2) MarshalJSON

func (receiver Users2Dot2) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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