authtypes

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginTypeDummy        = "m.login.dummy"
	LoginTypeSharedSecret = "org.matrix.login.shared_secret"
	LoginTypeRecaptcha    = "m.login.recaptcha"
	LoginTypePassword     = "m.login.password"

	LoginTypeApplicationService = "m.login.application_service"
)

The relevant login types implemented in Ligase

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	UserID       string
	ServerName   gomatrixserverlib.ServerName
	Profile      *Profile
	AppServiceID string
}

Account represents a Matrix account on this home server.

type AccountDataCacheData

type AccountDataCacheData struct {
	UserID  string
	Type    string
	Content string
}

type Device

type Device struct {
	ID           string `json:"id,omitempty"`
	UserID       string `json:"user_id,omitempty"`
	DisplayName  string `json:"display_name,omitempty"`
	DeviceType   string `json:"device_type,omitempty"`
	IsHuman      bool   `json:"is_human,omitempty"`
	Identifier   string `json:"identifier,omitempty"`
	CreateTs     int64  `json:"create_ts,omitempty"`
	LastActiveTs int64  `json:"last_active_ts,omitempty"`
}

Device represents a client's device (mobile, web, etc)

type Presences

type Presences struct {
	UserID       string
	Status       string
	StatusMsg    string
	ExtStatusMsg string
	ServerStatus string
}

type Profile

type Profile struct {
	UserID      string
	DisplayName string
	AvatarURL   string
}

Profile represents the profile for a Matrix account on this home server.

type RoomAccountDataCacheData

type RoomAccountDataCacheData struct {
	UserID  string
	RoomID  string
	Type    string
	Content string
}

type RoomTagCacheData

type RoomTagCacheData struct {
	UserID  string
	RoomID  string
	Tag     string
	Content string
}

type RoomTags

type RoomTags struct {
	Tags map[string]interface{} `json:"tags"`
}

type UserInfo

type UserInfo struct {
	UserID    string
	UserName  string
	JobNumber string
	Mobile    string
	Landline  string
	Email     string
	State     int
}

UserInfo represents the user information for a Matrix account on this home server.

Jump to

Keyboard shortcuts

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