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 ¶
func (Instance2Dot2) MarshalJSON ¶
func (receiver Instance2Dot2) MarshalJSON() ([]byte, error)
type Protocols1 ¶
func (Protocols1) MarshalJSON ¶
func (receiver Protocols1) MarshalJSON() ([]byte, error)
type Services1 ¶
func (Services1) MarshalJSON ¶
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 ¶
type Usage2Dot2 ¶
type Usage2Dot2 struct {
Users Users2Dot2
LocalPosts opt.Optional[string]
LocalComments opt.Optional[string]
}
func (Usage2Dot2) MarshalJSON ¶
func (receiver Usage2Dot2) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.