Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KoFish/pallium
/ functions
Functions
141 in github.com/KoFish/pallium
⨍
Functions
141
◇
Types & classes
42
↓ 76 callers
Method
String
()
objects/stream.go:24
↓ 60 callers
Method
Error
()
api/errors.go:27
↓ 25 callers
Method
Exec
(string, ...interface{})
storage/db.go:38
↓ 24 callers
Function
ENotFound
(msg string)
api/errors.go:65
↓ 18 callers
Function
EForbidden
(msg string)
api/errors.go:49
↓ 18 callers
Method
Rollback
()
storage/db.go:51
↓ 16 callers
Function
EBadJSON
(msg string)
api/errors.go:57
↓ 15 callers
Method
QueryRow
(string, ...interface{})
storage/db.go:40
↓ 9 callers
Function
NewStateEvent
(tx TX, user_id m.UserID, room_id m.RoomID, event_type, state_key string, content map[string]interface{})
storage/events.go:191
↓ 8 callers
Method
Query
(string, ...interface{})
storage/db.go:39
↓ 7 callers
Function
ENotJSON
(msg string)
api/errors.go:61
↓ 7 callers
Function
ParseUserID
(s string)
matrix/types.go:47
↓ 6 callers
Function
NewError
Create a new JSON-serializable matrix-formatted error message. The intention for having this in the api package is that it should be extendable for an
api/errors.go:42
↓ 5 callers
Function
Now
()
storage/db.go:65
↓ 5 callers
Function
makeDSS
(sigil, localpart, domain string)
matrix/dss.go:56
↓ 4 callers
Method
Begin
()
storage/db.go:45
↓ 4 callers
Method
Commit
()
storage/db.go:50
↓ 4 callers
Method
Compare
(b DomainSpecificString)
matrix/dss.go:36
↓ 4 callers
Method
GetProfile
(db DBI)
storage/profiles.go:43
↓ 4 callers
Function
parseDSS
(sigil, s string)
matrix/dss.go:70
↓ 3 callers
Method
GetOne
(key, defval string)
api/api.go:31
↓ 3 callers
Method
IsMine
()
matrix/dss.go:52
↓ 3 callers
Method
UpdateMember
(tx TX, sender m.UserID, target m.UserID, new_membership m.RoomMembership)
storage/rooms.go:213
↓ 2 callers
Function
CreateEvent
(tx TX, event_id m.EventID, user_id m.UserID, room_id m.RoomID, event_type string, content map[string]interfac
storage/events.go:103
↓ 2 callers
Method
Domain
()
matrix/dss.go:48
↓ 2 callers
Method
GetAccessToken
(db DBI)
storage/access_tokens.go:56
↓ 2 callers
Method
GetUserMembership
(db DBI, user_id m.UserID)
storage/rooms.go:116
↓ 2 callers
Method
Hash
()
storage/users.go:185
↓ 2 callers
Method
MakeHash
(salt string)
storage/users.go:180
↓ 2 callers
Method
WriteTo
WriteTo should really be able to implement the io.WriterTo interface but can't since the json.Encode does not return the correct values.
api/errors.go:33
↓ 2 callers
Function
toBytes
(nr int64)
matrix/types.go:91
↓ 1 callers
Method
CheckedUpdateMember
(tx TX, sender, target m.UserID, new_membership m.RoomMembership)
storage/rooms.go:423
↓ 1 callers
Function
CreateStateEvent
(tx TX, event_id m.EventID, user_id m.UserID, room_id m.RoomID, event_type, state_key string, content map[stri
storage/events.go:159
↓ 1 callers
Function
EUserInUse
(msg string)
api/errors.go:69
↓ 1 callers
Method
Equal
(password string)
storage/users.go:193
↓ 1 callers
Function
GetDatabase
()
storage/db.go:54
↓ 1 callers
Method
GetInitialPresence
(db DBI)
storage/users.go:144
↓ 1 callers
Method
GetInviteLevel
(db DBI)
storage/rooms.go:385
↓ 1 callers
Method
GetJoinRule
(db DBI)
storage/rooms.go:139
↓ 1 callers
Method
GetOpsLevels
(db DBI)
storage/rooms.go:334
↓ 1 callers
Method
GetPresence
(db DBI)
storage/presence.go:70
↓ 1 callers
Method
GetRoomMemberships
Fetch the users joined rooms and return it in a list for initial sync. limit is used to limit the number of messages that is returned for each room.
storage/users.go:113
↓ 1 callers
Method
GetUserPowerLevel
(db DBI, user_id m.UserID)
storage/rooms.go:104
↓ 1 callers
Method
InviteMember
(tx TX, sender m.UserID, target m.UserID)
storage/rooms.go:231
↓ 1 callers
Method
Localpart
()
matrix/dss.go:44
↓ 1 callers
Function
NewAccessToken
(db DBI, u *User)
storage/access_tokens.go:25
↓ 1 callers
Function
NewEvent
(tx TX, user_id m.UserID, room_id m.RoomID, event_type string, content map[string]interface{})
storage/events.go:183
↓ 1 callers
Function
NewEventID
(localpart, domain string)
matrix/types.go:81
↓ 1 callers
Function
NewProfile
(db DBI, u *User)
storage/profiles.go:23
↓ 1 callers
Function
NewRoomID
(localpart, domain string)
matrix/types.go:52
↓ 1 callers
Function
RequireAuth
(fn AuthJSONReply)
rest/utils/json_helpers.go:54
↓ 1 callers
Method
Salt
()
storage/users.go:189
↓ 1 callers
Method
SetPassword
(db DBI, passwordstring string)
storage/users.go:167
↓ 1 callers
Method
UpdateAccessToken
(db DBI)
storage/access_tokens.go:79
↓ 1 callers
Method
UpdateAddStateLevel
(tx TX, sender m.UserID, new_level int64)
storage/rooms.go:304
↓ 1 callers
Method
UpdateAliases
(tx TX, sender m.UserID, new_aliases []m.RoomAlias)
storage/rooms.go:235
↓ 1 callers
Method
UpdateAvatarURL
(db DBI, newurl string)
storage/profiles.go:81
↓ 1 callers
Method
UpdateDisplayName
(db DBI, newname string)
storage/profiles.go:63
↓ 1 callers
Method
UpdateJoinRule
(tx TX, sender m.UserID, new_join_rule m.RoomJoinRule)
storage/rooms.go:162
↓ 1 callers
Method
UpdateName
(tx TX, sender m.UserID, new_name string)
storage/rooms.go:179
↓ 1 callers
Method
UpdateOpsLevel
(tx TX, sender m.UserID, new_levels map[string]int64)
storage/rooms.go:343
↓ 1 callers
Method
UpdatePassword
(db DBI, hash PasswordHash)
storage/users.go:149
↓ 1 callers
Method
UpdatePowerLevels
(tx TX, sender m.UserID, new_levels map[m.UserID]int64, default_level *int64)
storage/rooms.go:260
↓ 1 callers
Method
UpdatePresence
(db DBI, newpresence PresenceState, message string)
storage/presence.go:54
↓ 1 callers
Method
UpdateSendEventLevel
(tx TX, sender m.UserID, new_level int64)
storage/rooms.go:319
↓ 1 callers
Method
UpdateTopic
(tx TX, sender m.UserID, new_topic string)
storage/rooms.go:196
↓ 1 callers
Function
canBan
(is_self, s_joined bool, s_level, r_ban_level int64)
storage/rooms.go:419
↓ 1 callers
Function
canInvite
(is_self, u_joined, s_joined, u_banned bool, s_level, r_inv_level, r_ban_level int64)
storage/rooms.go:397
↓ 1 callers
Function
canJoin
(is_self, r_public, u_invited bool)
storage/rooms.go:393
↓ 1 callers
Function
canLeave
(is_self, u_joined, u_invited, s_joined bool, s_level, r_kick_level int64)
storage/rooms.go:411
↓ 1 callers
Function
createEventEdge
(db DBI, from_event, to_event m.EventID, room_id m.RoomID)
storage/events.go:81
↓ 1 callers
Function
generateSalt
()
storage/utils.go:23
↓ 1 callers
Function
getCurrentRoomEvent
(db DBI, room_id m.RoomID)
storage/events.go:24
↓ 1 callers
Function
getCurrentState
(db DBI, room_id m.RoomID, event_type, state_key string)
storage/events.go:40
↓ 1 callers
Function
getroom_idDepth
(db DBI, room_id m.RoomID)
storage/events.go:69
↓ 1 callers
Function
load
(configfile string)
config/homeserver.go:41
↓ 1 callers
Function
loginUserByPassword
(user, password string)
api/auth.go:146
↓ 1 callers
Function
makeHash
(pass, salt string)
storage/utils.go:32
↓ 1 callers
Function
makeToken
(base string)
storage/utils.go:38
↓ 1 callers
Function
registerUserByPassword
(user, password string)
api/auth.go:105
↓ 1 callers
Function
setupEvents
(root *mux.Router)
rest/events.go:21
↓ 1 callers
Function
setupFederation
(sub *mux.Router)
rest/federation.go:19
↓ 1 callers
Function
setupLogin
(root *mux.Router)
rest/login.go:28
↓ 1 callers
Function
setupPresence
(root *mux.Router)
rest/presence.go:21
↓ 1 callers
Function
setupProfile
(root *mux.Router)
rest/profile.go:11
↓ 1 callers
Function
setupRegister
(root *mux.Router)
rest/login.go:35
↓ 1 callers
Function
setupRooms
(root *mux.Router)
rest/rooms.go:23
↓ 1 callers
Function
setupVoip
(root *mux.Router)
rest/voip.go:22
↓ 1 callers
Function
updateroom_idDepth
(db DBI, room_id m.RoomID, depth int64)
storage/events.go:59
Function
APIEndpoint
(fn api.SimpleEndpoint)
rest/utils/json_helpers.go:91
Function
AuthAPIEndpoint
(fn api.AuthEndpoint)
rest/utils/json_helpers.go:98
Function
CreateRoom
(tx TX, creator m.UserID, is_public bool)
storage/rooms.go:80
Function
CreateRoom
(user *s.User, req io.Reader, vars Vars, query Query)
api/room.go:70
Function
CreateUser
(db DBI, user_id m.UserID)
storage/users.go:34
Function
EUnknownToken
(msg string)
api/errors.go:53
Function
GenerateEventID
()
matrix/types.go:99
Function
GenerateRoomID
()
matrix/types.go:57
Function
GetAvatarURL
(req_user *s.User, request io.Reader, vars Vars, q Query)
api/profile.go:85
Function
GetDisplayName
(req_user *s.User, request io.Reader, vars Vars, q Query)
api/profile.go:25
Function
GetEvents
(user *s.User, request io.Reader, vars Vars, query Query)
api/eventstream.go:43
next →
1–100 of 141, ranked by callers