Documentation ¶
Index ¶
- func IsReservedUsername(username string) bool
- type IRI
- func (iri IRI) Actor() (string, error)
- func (iri IRI) FollowersOwner() (string, error)
- func (iri IRI) FollowingOwner() (string, error)
- func (iri IRI) InboxOwner() (string, error)
- func (iri IRI) LikedOwner() (string, error)
- func (iri IRI) Object() (string, error)
- func (iri IRI) OutboxOwner() (string, error)
- func (iri IRI) Owner() (string, error)
- func (iri IRI) String() string
- func (iri IRI) URL() *url.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReservedUsername ¶
Return whether username is a reserved username, that is a name that may not appear as first IRI component because it has other functions.
Types ¶
type IRI ¶
func RollObjectIRI ¶
func RollObjectIRI() IRI
Generate a new object IRI with a random UUID used as an object id.
func (IRI) Actor ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}
where the asterix is the placeholder for the base path.
func (IRI) FollowersOwner ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}/followers
where the asterix is the placeholder for the base path.
func (IRI) FollowingOwner ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}/following
where the asterix is the placeholder for the base path.
func (IRI) InboxOwner ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}/inbox
where the asterix is the placeholder for the base path.
func (IRI) LikedOwner ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}/liked
where the asterix is the placeholder for the base path.
func (IRI) Object ¶
Return the object id of the given IRI. The IRI needs to have the form
*/storage/{id}
where the asterix is the placeholder for the base path.
func (IRI) OutboxOwner ¶
Return the owner of the given IRI. The IRI needs to have the form
*/{username}/outbox //
where the asterix is the placeholder for the base path.