commands

package
v0.0.0-...-cdf258e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ACTIVITY_PUB
	ACTIVITY_STREAMS                = "https://www.w3.org/ns/activitystreams"
	ACTIVITY_PUB_PUBLIC             = ACTIVITY_STREAMS + "#Public"
	ACTIVITY_PUB_CREATE             = "Create"
	ACTIVITY_PUB_ORDERED_COLLECTION = "OrderedCollection"
	ACTIVITY_PUB_PERSON             = "Person"
	ACTIVITY_PUB_IMAGE              = "Image"
	ACTIVITY_PUB_NOTE               = "Note"

	// W3ID_SECURITY_V1
	W3ID_SECURITY_V1 = "https://w3id.org/security/v1"

	// OSTATUS
	OSTATUS_SUBSCRIPTION = "http://ostatus.org/schema/1.0/subscribe"
)

Variables

This section is empty.

Functions

func AuthorizeInteraction

func AuthorizeInteraction(x IDispatcher, uri string) (IAuthorizeInteractionResult, error)

func ChangePassword

func ChangePassword(x IDispatcher, currentPassword string, newPassword string) (IChangePasswordResult, error)

func CheckUsernameAvailability

func CheckUsernameAvailability(x IDispatcher, username string) (ICheckUsernameAvailabilityResult, error)

func Echo

func Echo(x IDispatcher, document IDocument) (IEchoResult, error)

func FollowActor

func FollowActor(x IDispatcher, username string, account string) (IFollowActorResult, error)

func GetActor

func GetActor(x IDispatcher, username string) (IGetActorResult, error)

func GetFollowers

func GetFollowers(x IDispatcher, username string) (IGetFollowersResult, error)

func GetFollowing

func GetFollowing(x IDispatcher, username string) (IGetFollowingResult, error)

func GetInbox

func GetInbox(x IDispatcher, username string) (IGetInboxResult, error)

func GetOutbox

func GetOutbox(x IDispatcher, username string) (IGetOutboxResult, error)

func GetPackages

func GetPackages(x IDispatcher) (IGetPackagesResult, error)

func GetProfileByUser

func GetProfileByUser(x IDispatcher) (IGetProfileByUserResult, error)

func GetServerConfiguration

func GetServerConfiguration(x IDispatcher) (IGetServerConfigurationResult, error)

func Login

func Login(x IDispatcher, email string, password string) (ILoginResult, error)

func Logout

func Logout(x IDispatcher) (ILogoutResult, error)

func PostToInbox

func PostToInbox(x IDispatcher, username string, body []byte) (IPostToInboxResult, error)

func PostToOutbox

func PostToOutbox(x IDispatcher, username string, body []byte) (IPostToOutboxResult, error)

func ResendVerificationCode

func ResendVerificationCode(x IDispatcher, email string) (IResendVerificationCodeResult, error)

func ResetPassword

func ResetPassword(x IDispatcher, usernameOrEmail string) (IResetPasswordResult, error)

func Signup

func Signup(x IDispatcher, username string, email string, password string) (ISignupResult, error)

func UpdateProfileByUser

func UpdateProfileByUser(x IDispatcher,
	displayName string,
	avatar string,
	banner string,
	summary string,
	github string,
) (IUpdateProfileByUserResult, error)

func Verify

func Verify(x IDispatcher, email string, token string, code string) (IVerifyResult, error)

func Webfinger

func Webfinger(x IDispatcher, resource string) (IWebfingerResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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