SYMBOL INDEX (3531 symbols across 97 files) FILE: chatbot/python/chatbot.py function log (line 54) | def log(*args): function add_future (line 58) | def add_future(tid, bundle): function clip_long_string (line 62) | def clip_long_string(obj): function to_json (line 74) | def to_json(msg): function exec_future (line 78) | def exec_future(tid, code, text, params): function add_subscription (line 96) | def add_subscription(topic): function del_subscription (line 99) | def del_subscription(topic): function subscription_failed (line 102) | def subscription_failed(topic, errcode): function login_error (line 111) | def login_error(unused, errcode): function server_version (line 116) | def server_version(params): function next_id (line 121) | def next_id(): function next_quote (line 129) | def next_quote(): class Plugin (line 139) | class Plugin(pbx.PluginServicer): method Account (line 140) | def Account(self, acc_event, context): function client_generate (line 159) | def client_generate(): function client_post (line 167) | def client_post(msg): function client_reset (line 170) | def client_reset(): function hello (line 178) | def hello(): function login (line 187) | def login(cookie_file_name, scheme, secret): function subscribe (line 196) | def subscribe(topic): function leave (line 205) | def leave(topic): function publish (line 213) | def publish(topic, text): function note_read (line 218) | def note_read(topic, seq): function init_server (line 221) | def init_server(listen): function init_client (line 232) | def init_client(addr, schema, secret, cookie_file_name, secure, ssl_host): function client_message_loop (line 252) | def client_message_loop(stream): function read_auth_cookie (line 292) | def read_auth_cookie(cookie_file_name): function on_login (line 307) | def on_login(cookie_file_name, params): function load_quotes (line 334) | def load_quotes(file_name): function run (line 341) | def run(args): FILE: chatbot/python/setup.py function git_version (line 25) | def git_version(): FILE: keygen/keygen.go function main (line 23) | func main() { constant APIKEY_VERSION (line 44) | APIKEY_VERSION = 1 constant APIKEY_APPID (line 46) | APIKEY_APPID = 4 constant APIKEY_SEQUENCE (line 48) | APIKEY_SEQUENCE = 2 constant APIKEY_WHO (line 50) | APIKEY_WHO = 1 constant APIKEY_SIGNATURE (line 52) | APIKEY_SIGNATURE = 16 constant APIKEY_LENGTH (line 54) | APIKEY_LENGTH = APIKEY_VERSION + APIKEY_APPID + APIKEY_SEQUENCE + APIKEY... function generate (line 57) | func generate(sequence, isRoot int, hmacSaltB64 string) int { function validate (line 111) | func validate(apikey string, hmacSaltB64 string) int { FILE: monitoring/exporter/influxdb_exporter.go type InfluxDBExporter (line 15) | type InfluxDBExporter struct method Push (line 41) | func (e *InfluxDBExporter) Push() error { function NewInfluxDBExporter (line 25) | func NewInfluxDBExporter(influxDBVersion, pushBaseAddress, organization, function formPushTargetAddress (line 86) | func formPushTargetAddress(influxDBVersion, baseAddr, organization, buck... function formAuthorizationHeaderValue (line 110) | func formAuthorizationHeaderValue(influxDBVersion, token string) string { FILE: monitoring/exporter/main.go type monitoringService (line 16) | type monitoringService constant promService (line 19) | promService monitoringService = 1 constant influxService (line 20) | influxService monitoringService = 2 constant minPushInterval (line 25) | minPushInterval = 10 type promHTTPLogger (line 28) | type promHTTPLogger struct method Println (line 30) | func (l promHTTPLogger) Println(v ...interface{}) { function parseMetricList (line 34) | func parseMetricList(list string) []string { function main (line 57) | func main() { FILE: monitoring/exporter/prom_exporter.go type PromExporter (line 11) | type PromExporter struct method Describe (line 214) | func (e *PromExporter) Describe(ch chan<- *prometheus.Desc) { method Collect (line 251) | func (e *PromExporter) Collect(ch chan<- prometheus.Metric) { method parseStats (line 265) | func (e *PromExporter) parseStats(ch chan<- prometheus.Metric, stats m... method parseAndUpdate (line 303) | func (e *PromExporter) parseAndUpdate(ch chan<- prometheus.Metric, des... method parseAndUpdateHisto (line 313) | func (e *PromExporter) parseAndUpdateHisto(ch chan<- prometheus.Metric... function NewPromExporter (line 53) | func NewPromExporter(server, namespace string, timeout time.Duration, sc... function firstError (line 323) | func firstError(errs ...error) error { FILE: monitoring/exporter/scraper.go type Scraper (line 12) | type Scraper struct method CollectRaw (line 33) | func (s *Scraper) CollectRaw() (map[string]interface{}, error) { method Scrape (line 48) | func (s *Scraper) Scrape() (map[string]interface{}, error) { method parseStatsRaw (line 61) | func (s *Scraper) parseStatsRaw(stats map[string]interface{}) (map[str... type histogram (line 22) | type histogram struct function parseHisto (line 83) | func parseHisto(stats map[string]interface{}, key string) (*histogram, e... function parseList (line 115) | func parseList(stats map[string]interface{}, path string) ([]float64, er... function parseNumeric (line 133) | func parseNumeric(stats map[string]interface{}, path string) (float64, e... function parseMetric (line 147) | func parseMetric(stats map[string]interface{}, path string) (interface{}... FILE: pbx/model.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AuthLevel (line 24) | type AuthLevel method Enum (line 49) | func (x AuthLevel) Enum() *AuthLevel { method String (line 55) | func (x AuthLevel) String() string { method Descriptor (line 59) | func (AuthLevel) Descriptor() protoreflect.EnumDescriptor { method Type (line 63) | func (AuthLevel) Type() protoreflect.EnumType { method Number (line 67) | func (x AuthLevel) Number() protoreflect.EnumNumber { method EnumDescriptor (line 72) | func (AuthLevel) EnumDescriptor() ([]byte, []int) { constant AuthLevel_NONE (line 27) | AuthLevel_NONE AuthLevel = 0 constant AuthLevel_ANON (line 28) | AuthLevel_ANON AuthLevel = 10 constant AuthLevel_AUTH (line 29) | AuthLevel_AUTH AuthLevel = 20 constant AuthLevel_ROOT (line 30) | AuthLevel_ROOT AuthLevel = 30 type InfoNote (line 76) | type InfoNote method Enum (line 105) | func (x InfoNote) Enum() *InfoNote { method String (line 111) | func (x InfoNote) String() string { method Descriptor (line 115) | func (InfoNote) Descriptor() protoreflect.EnumDescriptor { method Type (line 119) | func (InfoNote) Type() protoreflect.EnumType { method Number (line 123) | func (x InfoNote) Number() protoreflect.EnumNumber { method EnumDescriptor (line 128) | func (InfoNote) EnumDescriptor() ([]byte, []int) { constant InfoNote_X1 (line 80) | InfoNote_X1 InfoNote = 0 constant InfoNote_READ (line 81) | InfoNote_READ InfoNote = 1 constant InfoNote_RECV (line 82) | InfoNote_RECV InfoNote = 2 constant InfoNote_KP (line 83) | InfoNote_KP InfoNote = 3 constant InfoNote_CALL (line 84) | InfoNote_CALL InfoNote = 4 type CallEvent (line 132) | type CallEvent method Enum (line 170) | func (x CallEvent) Enum() *CallEvent { method String (line 176) | func (x CallEvent) String() string { method Descriptor (line 180) | func (CallEvent) Descriptor() protoreflect.EnumDescriptor { method Type (line 184) | func (CallEvent) Type() protoreflect.EnumType { method Number (line 188) | func (x CallEvent) Number() protoreflect.EnumNumber { method EnumDescriptor (line 193) | func (CallEvent) EnumDescriptor() ([]byte, []int) { constant CallEvent_X2 (line 136) | CallEvent_X2 CallEvent = 0 constant CallEvent_ACCEPT (line 137) | CallEvent_ACCEPT CallEvent = 1 constant CallEvent_ANSWER (line 138) | CallEvent_ANSWER CallEvent = 2 constant CallEvent_HANG_UP (line 139) | CallEvent_HANG_UP CallEvent = 3 constant CallEvent_ICE_CANDIDATE (line 140) | CallEvent_ICE_CANDIDATE CallEvent = 4 constant CallEvent_INVITE (line 141) | CallEvent_INVITE CallEvent = 5 constant CallEvent_OFFER (line 142) | CallEvent_OFFER CallEvent = 6 constant CallEvent_RINGING (line 143) | CallEvent_RINGING CallEvent = 7 type RespCode (line 198) | type RespCode method Enum (line 229) | func (x RespCode) Enum() *RespCode { method String (line 235) | func (x RespCode) String() string { method Descriptor (line 239) | func (RespCode) Descriptor() protoreflect.EnumDescriptor { method Type (line 243) | func (RespCode) Type() protoreflect.EnumType { method Number (line 247) | func (x RespCode) Number() protoreflect.EnumNumber { method EnumDescriptor (line 252) | func (RespCode) EnumDescriptor() ([]byte, []int) { constant RespCode_CONTINUE (line 202) | RespCode_CONTINUE RespCode = 0 constant RespCode_DROP (line 204) | RespCode_DROP RespCode = 1 constant RespCode_RESPOND (line 207) | RespCode_RESPOND RespCode = 2 constant RespCode_REPLACE (line 210) | RespCode_REPLACE RespCode = 3 type Crud (line 256) | type Crud method Enum (line 278) | func (x Crud) Enum() *Crud { method String (line 284) | func (x Crud) String() string { method Descriptor (line 288) | func (Crud) Descriptor() protoreflect.EnumDescriptor { method Type (line 292) | func (Crud) Type() protoreflect.EnumType { method Number (line 296) | func (x Crud) Number() protoreflect.EnumNumber { method EnumDescriptor (line 301) | func (Crud) EnumDescriptor() ([]byte, []int) { constant Crud_CREATE (line 259) | Crud_CREATE Crud = 0 constant Crud_UPDATE (line 260) | Crud_UPDATE Crud = 1 constant Crud_DELETE (line 261) | Crud_DELETE Crud = 2 type ClientDel_What (line 307) | type ClientDel_What method Enum (line 339) | func (x ClientDel_What) Enum() *ClientDel_What { method String (line 345) | func (x ClientDel_What) String() string { method Descriptor (line 349) | func (ClientDel_What) Descriptor() protoreflect.EnumDescriptor { method Type (line 353) | func (ClientDel_What) Type() protoreflect.EnumType { method Number (line 357) | func (x ClientDel_What) Number() protoreflect.EnumNumber { method EnumDescriptor (line 362) | func (ClientDel_What) EnumDescriptor() ([]byte, []int) { constant ClientDel_X0 (line 311) | ClientDel_X0 ClientDel_What = 0 constant ClientDel_MSG (line 312) | ClientDel_MSG ClientDel_What = 1 constant ClientDel_TOPIC (line 313) | ClientDel_TOPIC ClientDel_What = 2 constant ClientDel_SUB (line 314) | ClientDel_SUB ClientDel_What = 3 constant ClientDel_USER (line 315) | ClientDel_USER ClientDel_What = 4 constant ClientDel_CRED (line 316) | ClientDel_CRED ClientDel_What = 5 type ServerPres_What (line 366) | type ServerPres_What method Enum (line 422) | func (x ServerPres_What) Enum() *ServerPres_What { method String (line 428) | func (x ServerPres_What) String() string { method Descriptor (line 432) | func (ServerPres_What) Descriptor() protoreflect.EnumDescriptor { method Type (line 436) | func (ServerPres_What) Type() protoreflect.EnumType { method Number (line 440) | func (x ServerPres_What) Number() protoreflect.EnumNumber { method EnumDescriptor (line 445) | func (ServerPres_What) EnumDescriptor() ([]byte, []int) { constant ServerPres_X3 (line 370) | ServerPres_X3 ServerPres_What = 0 constant ServerPres_ON (line 371) | ServerPres_ON ServerPres_What = 1 constant ServerPres_OFF (line 372) | ServerPres_OFF ServerPres_What = 2 constant ServerPres_UA (line 373) | ServerPres_UA ServerPres_What = 3 constant ServerPres_UPD (line 374) | ServerPres_UPD ServerPres_What = 4 constant ServerPres_GONE (line 375) | ServerPres_GONE ServerPres_What = 5 constant ServerPres_ACS (line 376) | ServerPres_ACS ServerPres_What = 6 constant ServerPres_TERM (line 377) | ServerPres_TERM ServerPres_What = 7 constant ServerPres_MSG (line 378) | ServerPres_MSG ServerPres_What = 8 constant ServerPres_READ (line 379) | ServerPres_READ ServerPres_What = 9 constant ServerPres_RECV (line 380) | ServerPres_RECV ServerPres_What = 10 constant ServerPres_DEL (line 381) | ServerPres_DEL ServerPres_What = 11 constant ServerPres_TAGS (line 382) | ServerPres_TAGS ServerPres_What = 12 constant ServerPres_AUX (line 383) | ServerPres_AUX ServerPres_What = 13 type Unused (line 450) | type Unused struct method Reset (line 456) | func (x *Unused) Reset() { method String (line 465) | func (x *Unused) String() string { method ProtoMessage (line 469) | func (*Unused) ProtoMessage() {} method ProtoReflect (line 471) | func (x *Unused) ProtoReflect() protoreflect.Message { method Descriptor (line 484) | func (*Unused) Descriptor() ([]byte, []int) { type DefaultAcsMode (line 489) | type DefaultAcsMode struct method Reset (line 498) | func (x *DefaultAcsMode) Reset() { method String (line 507) | func (x *DefaultAcsMode) String() string { method ProtoMessage (line 511) | func (*DefaultAcsMode) ProtoMessage() {} method ProtoReflect (line 513) | func (x *DefaultAcsMode) ProtoReflect() protoreflect.Message { method Descriptor (line 526) | func (*DefaultAcsMode) Descriptor() ([]byte, []int) { method GetAuth (line 530) | func (x *DefaultAcsMode) GetAuth() string { method GetAnon (line 537) | func (x *DefaultAcsMode) GetAnon() string { type AccessMode (line 545) | type AccessMode struct method Reset (line 556) | func (x *AccessMode) Reset() { method String (line 565) | func (x *AccessMode) String() string { method ProtoMessage (line 569) | func (*AccessMode) ProtoMessage() {} method ProtoReflect (line 571) | func (x *AccessMode) ProtoReflect() protoreflect.Message { method Descriptor (line 584) | func (*AccessMode) Descriptor() ([]byte, []int) { method GetWant (line 588) | func (x *AccessMode) GetWant() string { method GetGiven (line 595) | func (x *AccessMode) GetGiven() string { type SetSub (line 603) | type SetSub struct method Reset (line 614) | func (x *SetSub) Reset() { method String (line 623) | func (x *SetSub) String() string { method ProtoMessage (line 627) | func (*SetSub) ProtoMessage() {} method ProtoReflect (line 629) | func (x *SetSub) ProtoReflect() protoreflect.Message { method Descriptor (line 642) | func (*SetSub) Descriptor() ([]byte, []int) { method GetUserId (line 646) | func (x *SetSub) GetUserId() string { method GetMode (line 653) | func (x *SetSub) GetMode() string { type ClientCred (line 661) | type ClientCred struct method Reset (line 676) | func (x *ClientCred) Reset() { method String (line 685) | func (x *ClientCred) String() string { method ProtoMessage (line 689) | func (*ClientCred) ProtoMessage() {} method ProtoReflect (line 691) | func (x *ClientCred) ProtoReflect() protoreflect.Message { method Descriptor (line 704) | func (*ClientCred) Descriptor() ([]byte, []int) { method GetMethod (line 708) | func (x *ClientCred) GetMethod() string { method GetValue (line 715) | func (x *ClientCred) GetValue() string { method GetResponse (line 722) | func (x *ClientCred) GetResponse() string { method GetParams (line 729) | func (x *ClientCred) GetParams() map[string][]byte { type SetDesc (line 737) | type SetDesc struct method Reset (line 748) | func (x *SetDesc) Reset() { method String (line 757) | func (x *SetDesc) String() string { method ProtoMessage (line 761) | func (*SetDesc) ProtoMessage() {} method ProtoReflect (line 763) | func (x *SetDesc) ProtoReflect() protoreflect.Message { method Descriptor (line 776) | func (*SetDesc) Descriptor() ([]byte, []int) { method GetDefaultAcs (line 780) | func (x *SetDesc) GetDefaultAcs() *DefaultAcsMode { method GetPublic (line 787) | func (x *SetDesc) GetPublic() []byte { method GetPrivate (line 794) | func (x *SetDesc) GetPrivate() []byte { method GetTrusted (line 801) | func (x *SetDesc) GetTrusted() []byte { type SeqRange (line 808) | type SeqRange struct method Reset (line 817) | func (x *SeqRange) Reset() { method String (line 826) | func (x *SeqRange) String() string { method ProtoMessage (line 830) | func (*SeqRange) ProtoMessage() {} method ProtoReflect (line 832) | func (x *SeqRange) ProtoReflect() protoreflect.Message { method Descriptor (line 845) | func (*SeqRange) Descriptor() ([]byte, []int) { method GetLow (line 849) | func (x *SeqRange) GetLow() int32 { method GetHi (line 856) | func (x *SeqRange) GetHi() int32 { type GetOpts (line 863) | type GetOpts struct method Reset (line 884) | func (x *GetOpts) Reset() { method String (line 893) | func (x *GetOpts) String() string { method ProtoMessage (line 897) | func (*GetOpts) ProtoMessage() {} method ProtoReflect (line 899) | func (x *GetOpts) ProtoReflect() protoreflect.Message { method Descriptor (line 912) | func (*GetOpts) Descriptor() ([]byte, []int) { method GetIfModifiedSince (line 916) | func (x *GetOpts) GetIfModifiedSince() int64 { method GetUser (line 923) | func (x *GetOpts) GetUser() string { method GetTopic (line 930) | func (x *GetOpts) GetTopic() string { method GetSinceId (line 937) | func (x *GetOpts) GetSinceId() int32 { method GetBeforeId (line 944) | func (x *GetOpts) GetBeforeId() int32 { method GetLimit (line 951) | func (x *GetOpts) GetLimit() int32 { method GetRanges (line 958) | func (x *GetOpts) GetRanges() []*SeqRange { type GetQuery (line 965) | type GetQuery struct method Reset (line 979) | func (x *GetQuery) Reset() { method String (line 988) | func (x *GetQuery) String() string { method ProtoMessage (line 992) | func (*GetQuery) ProtoMessage() {} method ProtoReflect (line 994) | func (x *GetQuery) ProtoReflect() protoreflect.Message { method Descriptor (line 1007) | func (*GetQuery) Descriptor() ([]byte, []int) { method GetWhat (line 1011) | func (x *GetQuery) GetWhat() string { method GetDesc (line 1018) | func (x *GetQuery) GetDesc() *GetOpts { method GetSub (line 1025) | func (x *GetQuery) GetSub() *GetOpts { method GetData (line 1032) | func (x *GetQuery) GetData() *GetOpts { type SetQuery (line 1039) | type SetQuery struct method Reset (line 1056) | func (x *SetQuery) Reset() { method String (line 1065) | func (x *SetQuery) String() string { method ProtoMessage (line 1069) | func (*SetQuery) ProtoMessage() {} method ProtoReflect (line 1071) | func (x *SetQuery) ProtoReflect() protoreflect.Message { method Descriptor (line 1084) | func (*SetQuery) Descriptor() ([]byte, []int) { method GetDesc (line 1088) | func (x *SetQuery) GetDesc() *SetDesc { method GetSub (line 1095) | func (x *SetQuery) GetSub() *SetSub { method GetTags (line 1102) | func (x *SetQuery) GetTags() []string { method GetCred (line 1109) | func (x *SetQuery) GetCred() *ClientCred { method GetAux (line 1116) | func (x *SetQuery) GetAux() map[string][]byte { type ClientHi (line 1124) | type ClientHi struct method Reset (line 1138) | func (x *ClientHi) Reset() { method String (line 1147) | func (x *ClientHi) String() string { method ProtoMessage (line 1151) | func (*ClientHi) ProtoMessage() {} method ProtoReflect (line 1153) | func (x *ClientHi) ProtoReflect() protoreflect.Message { method Descriptor (line 1166) | func (*ClientHi) Descriptor() ([]byte, []int) { method GetId (line 1170) | func (x *ClientHi) GetId() string { method GetUserAgent (line 1177) | func (x *ClientHi) GetUserAgent() string { method GetVer (line 1184) | func (x *ClientHi) GetVer() string { method GetDeviceId (line 1191) | func (x *ClientHi) GetDeviceId() string { method GetLang (line 1198) | func (x *ClientHi) GetLang() string { method GetPlatform (line 1205) | func (x *ClientHi) GetPlatform() string { method GetBackground (line 1212) | func (x *ClientHi) GetBackground() bool { type ClientAcc (line 1220) | type ClientAcc struct method Reset (line 1251) | func (x *ClientAcc) Reset() { method String (line 1260) | func (x *ClientAcc) String() string { method ProtoMessage (line 1264) | func (*ClientAcc) ProtoMessage() {} method ProtoReflect (line 1266) | func (x *ClientAcc) ProtoReflect() protoreflect.Message { method Descriptor (line 1279) | func (*ClientAcc) Descriptor() ([]byte, []int) { method GetId (line 1283) | func (x *ClientAcc) GetId() string { method GetUserId (line 1290) | func (x *ClientAcc) GetUserId() string { method GetScheme (line 1297) | func (x *ClientAcc) GetScheme() string { method GetSecret (line 1304) | func (x *ClientAcc) GetSecret() []byte { method GetLogin (line 1311) | func (x *ClientAcc) GetLogin() bool { method GetTags (line 1318) | func (x *ClientAcc) GetTags() []string { method GetDesc (line 1325) | func (x *ClientAcc) GetDesc() *SetDesc { method GetCred (line 1332) | func (x *ClientAcc) GetCred() []*ClientCred { method GetToken (line 1339) | func (x *ClientAcc) GetToken() []byte { method GetState (line 1346) | func (x *ClientAcc) GetState() string { method GetAuthLevel (line 1353) | func (x *ClientAcc) GetAuthLevel() AuthLevel { method GetTmpScheme (line 1360) | func (x *ClientAcc) GetTmpScheme() string { method GetTmpSecret (line 1367) | func (x *ClientAcc) GetTmpSecret() []byte { type ClientLogin (line 1375) | type ClientLogin struct method Reset (line 1389) | func (x *ClientLogin) Reset() { method String (line 1398) | func (x *ClientLogin) String() string { method ProtoMessage (line 1402) | func (*ClientLogin) ProtoMessage() {} method ProtoReflect (line 1404) | func (x *ClientLogin) ProtoReflect() protoreflect.Message { method Descriptor (line 1417) | func (*ClientLogin) Descriptor() ([]byte, []int) { method GetId (line 1421) | func (x *ClientLogin) GetId() string { method GetScheme (line 1428) | func (x *ClientLogin) GetScheme() string { method GetSecret (line 1435) | func (x *ClientLogin) GetSecret() []byte { method GetCred (line 1442) | func (x *ClientLogin) GetCred() []*ClientCred { type ClientSub (line 1450) | type ClientSub struct method Reset (line 1463) | func (x *ClientSub) Reset() { method String (line 1472) | func (x *ClientSub) String() string { method ProtoMessage (line 1476) | func (*ClientSub) ProtoMessage() {} method ProtoReflect (line 1478) | func (x *ClientSub) ProtoReflect() protoreflect.Message { method Descriptor (line 1491) | func (*ClientSub) Descriptor() ([]byte, []int) { method GetId (line 1495) | func (x *ClientSub) GetId() string { method GetTopic (line 1502) | func (x *ClientSub) GetTopic() string { method GetSetQuery (line 1509) | func (x *ClientSub) GetSetQuery() *SetQuery { method GetGetQuery (line 1516) | func (x *ClientSub) GetGetQuery() *GetQuery { type ClientLeave (line 1524) | type ClientLeave struct method Reset (line 1534) | func (x *ClientLeave) Reset() { method String (line 1543) | func (x *ClientLeave) String() string { method ProtoMessage (line 1547) | func (*ClientLeave) ProtoMessage() {} method ProtoReflect (line 1549) | func (x *ClientLeave) ProtoReflect() protoreflect.Message { method Descriptor (line 1562) | func (*ClientLeave) Descriptor() ([]byte, []int) { method GetId (line 1566) | func (x *ClientLeave) GetId() string { method GetTopic (line 1573) | func (x *ClientLeave) GetTopic() string { method GetUnsub (line 1580) | func (x *ClientLeave) GetUnsub() bool { type ClientPub (line 1588) | type ClientPub struct method Reset (line 1600) | func (x *ClientPub) Reset() { method String (line 1609) | func (x *ClientPub) String() string { method ProtoMessage (line 1613) | func (*ClientPub) ProtoMessage() {} method ProtoReflect (line 1615) | func (x *ClientPub) ProtoReflect() protoreflect.Message { method Descriptor (line 1628) | func (*ClientPub) Descriptor() ([]byte, []int) { method GetId (line 1632) | func (x *ClientPub) GetId() string { method GetTopic (line 1639) | func (x *ClientPub) GetTopic() string { method GetNoEcho (line 1646) | func (x *ClientPub) GetNoEcho() bool { method GetHead (line 1653) | func (x *ClientPub) GetHead() map[string][]byte { method GetContent (line 1660) | func (x *ClientPub) GetContent() []byte { type ClientGet (line 1668) | type ClientGet struct method Reset (line 1678) | func (x *ClientGet) Reset() { method String (line 1687) | func (x *ClientGet) String() string { method ProtoMessage (line 1691) | func (*ClientGet) ProtoMessage() {} method ProtoReflect (line 1693) | func (x *ClientGet) ProtoReflect() protoreflect.Message { method Descriptor (line 1706) | func (*ClientGet) Descriptor() ([]byte, []int) { method GetId (line 1710) | func (x *ClientGet) GetId() string { method GetTopic (line 1717) | func (x *ClientGet) GetTopic() string { method GetQuery (line 1724) | func (x *ClientGet) GetQuery() *GetQuery { type ClientSet (line 1732) | type ClientSet struct method Reset (line 1742) | func (x *ClientSet) Reset() { method String (line 1751) | func (x *ClientSet) String() string { method ProtoMessage (line 1755) | func (*ClientSet) ProtoMessage() {} method ProtoReflect (line 1757) | func (x *ClientSet) ProtoReflect() protoreflect.Message { method Descriptor (line 1770) | func (*ClientSet) Descriptor() ([]byte, []int) { method GetId (line 1774) | func (x *ClientSet) GetId() string { method GetTopic (line 1781) | func (x *ClientSet) GetTopic() string { method GetQuery (line 1788) | func (x *ClientSet) GetQuery() *SetQuery { type ClientDel (line 1796) | type ClientDel struct method Reset (line 1814) | func (x *ClientDel) Reset() { method String (line 1823) | func (x *ClientDel) String() string { method ProtoMessage (line 1827) | func (*ClientDel) ProtoMessage() {} method ProtoReflect (line 1829) | func (x *ClientDel) ProtoReflect() protoreflect.Message { method Descriptor (line 1842) | func (*ClientDel) Descriptor() ([]byte, []int) { method GetId (line 1846) | func (x *ClientDel) GetId() string { method GetTopic (line 1853) | func (x *ClientDel) GetTopic() string { method GetWhat (line 1860) | func (x *ClientDel) GetWhat() ClientDel_What { method GetDelSeq (line 1867) | func (x *ClientDel) GetDelSeq() []*SeqRange { method GetUserId (line 1874) | func (x *ClientDel) GetUserId() string { method GetCred (line 1881) | func (x *ClientDel) GetCred() *ClientCred { method GetHard (line 1888) | func (x *ClientDel) GetHard() bool { type ClientNote (line 1896) | type ClientNote struct method Reset (line 1915) | func (x *ClientNote) Reset() { method String (line 1924) | func (x *ClientNote) String() string { method ProtoMessage (line 1928) | func (*ClientNote) ProtoMessage() {} method ProtoReflect (line 1930) | func (x *ClientNote) ProtoReflect() protoreflect.Message { method Descriptor (line 1943) | func (*ClientNote) Descriptor() ([]byte, []int) { method GetTopic (line 1947) | func (x *ClientNote) GetTopic() string { method GetWhat (line 1954) | func (x *ClientNote) GetWhat() InfoNote { method GetSeqId (line 1961) | func (x *ClientNote) GetSeqId() int32 { method GetUnread (line 1968) | func (x *ClientNote) GetUnread() int32 { method GetEvent (line 1975) | func (x *ClientNote) GetEvent() CallEvent { method GetPayload (line 1982) | func (x *ClientNote) GetPayload() []byte { type ClientExtra (line 1989) | type ClientExtra struct method Reset (line 2000) | func (x *ClientExtra) Reset() { method String (line 2009) | func (x *ClientExtra) String() string { method ProtoMessage (line 2013) | func (*ClientExtra) ProtoMessage() {} method ProtoReflect (line 2015) | func (x *ClientExtra) ProtoReflect() protoreflect.Message { method Descriptor (line 2028) | func (*ClientExtra) Descriptor() ([]byte, []int) { method GetAttachments (line 2032) | func (x *ClientExtra) GetAttachments() []string { method GetOnBehalfOf (line 2039) | func (x *ClientExtra) GetOnBehalfOf() string { method GetAuthLevel (line 2046) | func (x *ClientExtra) GetAuthLevel() AuthLevel { type ClientMsg (line 2053) | type ClientMsg struct method Reset (line 2074) | func (x *ClientMsg) Reset() { method String (line 2083) | func (x *ClientMsg) String() string { method ProtoMessage (line 2087) | func (*ClientMsg) ProtoMessage() {} method ProtoReflect (line 2089) | func (x *ClientMsg) ProtoReflect() protoreflect.Message { method Descriptor (line 2102) | func (*ClientMsg) Descriptor() ([]byte, []int) { method GetMessage (line 2106) | func (m *ClientMsg) GetMessage() isClientMsg_Message { method GetHi (line 2113) | func (x *ClientMsg) GetHi() *ClientHi { method GetAcc (line 2120) | func (x *ClientMsg) GetAcc() *ClientAcc { method GetLogin (line 2127) | func (x *ClientMsg) GetLogin() *ClientLogin { method GetSub (line 2134) | func (x *ClientMsg) GetSub() *ClientSub { method GetLeave (line 2141) | func (x *ClientMsg) GetLeave() *ClientLeave { method GetPub (line 2148) | func (x *ClientMsg) GetPub() *ClientPub { method GetGet (line 2155) | func (x *ClientMsg) GetGet() *ClientGet { method GetSet (line 2162) | func (x *ClientMsg) GetSet() *ClientSet { method GetDel (line 2169) | func (x *ClientMsg) GetDel() *ClientDel { method GetNote (line 2176) | func (x *ClientMsg) GetNote() *ClientNote { method GetExtra (line 2183) | func (x *ClientMsg) GetExtra() *ClientExtra { type isClientMsg_Message (line 2190) | type isClientMsg_Message interface type ClientMsg_Hi (line 2194) | type ClientMsg_Hi struct method isClientMsg_Message (line 2234) | func (*ClientMsg_Hi) isClientMsg_Message() {} type ClientMsg_Acc (line 2198) | type ClientMsg_Acc struct method isClientMsg_Message (line 2236) | func (*ClientMsg_Acc) isClientMsg_Message() {} type ClientMsg_Login (line 2202) | type ClientMsg_Login struct method isClientMsg_Message (line 2238) | func (*ClientMsg_Login) isClientMsg_Message() {} type ClientMsg_Sub (line 2206) | type ClientMsg_Sub struct method isClientMsg_Message (line 2240) | func (*ClientMsg_Sub) isClientMsg_Message() {} type ClientMsg_Leave (line 2210) | type ClientMsg_Leave struct method isClientMsg_Message (line 2242) | func (*ClientMsg_Leave) isClientMsg_Message() {} type ClientMsg_Pub (line 2214) | type ClientMsg_Pub struct method isClientMsg_Message (line 2244) | func (*ClientMsg_Pub) isClientMsg_Message() {} type ClientMsg_Get (line 2218) | type ClientMsg_Get struct method isClientMsg_Message (line 2246) | func (*ClientMsg_Get) isClientMsg_Message() {} type ClientMsg_Set (line 2222) | type ClientMsg_Set struct method isClientMsg_Message (line 2248) | func (*ClientMsg_Set) isClientMsg_Message() {} type ClientMsg_Del (line 2226) | type ClientMsg_Del struct method isClientMsg_Message (line 2250) | func (*ClientMsg_Del) isClientMsg_Message() {} type ClientMsg_Note (line 2230) | type ClientMsg_Note struct method isClientMsg_Message (line 2252) | func (*ClientMsg_Note) isClientMsg_Message() {} type ServerCred (line 2255) | type ServerCred struct method Reset (line 2268) | func (x *ServerCred) Reset() { method String (line 2277) | func (x *ServerCred) String() string { method ProtoMessage (line 2281) | func (*ServerCred) ProtoMessage() {} method ProtoReflect (line 2283) | func (x *ServerCred) ProtoReflect() protoreflect.Message { method Descriptor (line 2296) | func (*ServerCred) Descriptor() ([]byte, []int) { method GetMethod (line 2300) | func (x *ServerCred) GetMethod() string { method GetValue (line 2307) | func (x *ServerCred) GetValue() string { method GetDone (line 2314) | func (x *ServerCred) GetDone() bool { type TopicDesc (line 2322) | type TopicDesc struct method Reset (line 2348) | func (x *TopicDesc) Reset() { method String (line 2357) | func (x *TopicDesc) String() string { method ProtoMessage (line 2361) | func (*TopicDesc) ProtoMessage() {} method ProtoReflect (line 2363) | func (x *TopicDesc) ProtoReflect() protoreflect.Message { method Descriptor (line 2376) | func (*TopicDesc) Descriptor() ([]byte, []int) { method GetCreatedAt (line 2380) | func (x *TopicDesc) GetCreatedAt() int64 { method GetUpdatedAt (line 2387) | func (x *TopicDesc) GetUpdatedAt() int64 { method GetTouchedAt (line 2394) | func (x *TopicDesc) GetTouchedAt() int64 { method GetDefacs (line 2401) | func (x *TopicDesc) GetDefacs() *DefaultAcsMode { method GetAcs (line 2408) | func (x *TopicDesc) GetAcs() *AccessMode { method GetSeqId (line 2415) | func (x *TopicDesc) GetSeqId() int32 { method GetReadId (line 2422) | func (x *TopicDesc) GetReadId() int32 { method GetRecvId (line 2429) | func (x *TopicDesc) GetRecvId() int32 { method GetDelId (line 2436) | func (x *TopicDesc) GetDelId() int32 { method GetPublic (line 2443) | func (x *TopicDesc) GetPublic() []byte { method GetPrivate (line 2450) | func (x *TopicDesc) GetPrivate() []byte { method GetState (line 2457) | func (x *TopicDesc) GetState() string { method GetStateAt (line 2464) | func (x *TopicDesc) GetStateAt() int64 { method GetTrusted (line 2471) | func (x *TopicDesc) GetTrusted() []byte { method GetIsChan (line 2478) | func (x *TopicDesc) GetIsChan() bool { method GetOnline (line 2485) | func (x *TopicDesc) GetOnline() bool { method GetLastSeenTime (line 2492) | func (x *TopicDesc) GetLastSeenTime() int64 { method GetLastSeenUserAgent (line 2499) | func (x *TopicDesc) GetLastSeenUserAgent() string { type TopicSub (line 2507) | type TopicSub struct method Reset (line 2535) | func (x *TopicSub) Reset() { method String (line 2544) | func (x *TopicSub) String() string { method ProtoMessage (line 2548) | func (*TopicSub) ProtoMessage() {} method ProtoReflect (line 2550) | func (x *TopicSub) ProtoReflect() protoreflect.Message { method Descriptor (line 2563) | func (*TopicSub) Descriptor() ([]byte, []int) { method GetUpdatedAt (line 2567) | func (x *TopicSub) GetUpdatedAt() int64 { method GetDeletedAt (line 2574) | func (x *TopicSub) GetDeletedAt() int64 { method GetOnline (line 2581) | func (x *TopicSub) GetOnline() bool { method GetAcs (line 2588) | func (x *TopicSub) GetAcs() *AccessMode { method GetReadId (line 2595) | func (x *TopicSub) GetReadId() int32 { method GetRecvId (line 2602) | func (x *TopicSub) GetRecvId() int32 { method GetPublic (line 2609) | func (x *TopicSub) GetPublic() []byte { method GetTrusted (line 2616) | func (x *TopicSub) GetTrusted() []byte { method GetPrivate (line 2623) | func (x *TopicSub) GetPrivate() []byte { method GetUserId (line 2630) | func (x *TopicSub) GetUserId() string { method GetTopic (line 2637) | func (x *TopicSub) GetTopic() string { method GetTouchedAt (line 2644) | func (x *TopicSub) GetTouchedAt() int64 { method GetSeqId (line 2651) | func (x *TopicSub) GetSeqId() int32 { method GetDelId (line 2658) | func (x *TopicSub) GetDelId() int32 { method GetLastSeenTime (line 2665) | func (x *TopicSub) GetLastSeenTime() int64 { method GetLastSeenUserAgent (line 2672) | func (x *TopicSub) GetLastSeenUserAgent() string { type DelValues (line 2679) | type DelValues struct method Reset (line 2688) | func (x *DelValues) Reset() { method String (line 2697) | func (x *DelValues) String() string { method ProtoMessage (line 2701) | func (*DelValues) ProtoMessage() {} method ProtoReflect (line 2703) | func (x *DelValues) ProtoReflect() protoreflect.Message { method Descriptor (line 2716) | func (*DelValues) Descriptor() ([]byte, []int) { method GetDelId (line 2720) | func (x *DelValues) GetDelId() int32 { method GetDelSeq (line 2727) | func (x *DelValues) GetDelSeq() []*SeqRange { type ServerCtrl (line 2735) | type ServerCtrl struct method Reset (line 2747) | func (x *ServerCtrl) Reset() { method String (line 2756) | func (x *ServerCtrl) String() string { method ProtoMessage (line 2760) | func (*ServerCtrl) ProtoMessage() {} method ProtoReflect (line 2762) | func (x *ServerCtrl) ProtoReflect() protoreflect.Message { method Descriptor (line 2775) | func (*ServerCtrl) Descriptor() ([]byte, []int) { method GetId (line 2779) | func (x *ServerCtrl) GetId() string { method GetTopic (line 2786) | func (x *ServerCtrl) GetTopic() string { method GetCode (line 2793) | func (x *ServerCtrl) GetCode() int32 { method GetText (line 2800) | func (x *ServerCtrl) GetText() string { method GetParams (line 2807) | func (x *ServerCtrl) GetParams() map[string][]byte { type ServerData (line 2815) | type ServerData struct method Reset (line 2832) | func (x *ServerData) Reset() { method String (line 2841) | func (x *ServerData) String() string { method ProtoMessage (line 2845) | func (*ServerData) ProtoMessage() {} method ProtoReflect (line 2847) | func (x *ServerData) ProtoReflect() protoreflect.Message { method Descriptor (line 2860) | func (*ServerData) Descriptor() ([]byte, []int) { method GetTopic (line 2864) | func (x *ServerData) GetTopic() string { method GetFromUserId (line 2871) | func (x *ServerData) GetFromUserId() string { method GetTimestamp (line 2878) | func (x *ServerData) GetTimestamp() int64 { method GetDeletedAt (line 2885) | func (x *ServerData) GetDeletedAt() int64 { method GetSeqId (line 2892) | func (x *ServerData) GetSeqId() int32 { method GetHead (line 2899) | func (x *ServerData) GetHead() map[string][]byte { method GetContent (line 2906) | func (x *ServerData) GetContent() []byte { type ServerPres (line 2914) | type ServerPres struct method Reset (line 2931) | func (x *ServerPres) Reset() { method String (line 2940) | func (x *ServerPres) String() string { method ProtoMessage (line 2944) | func (*ServerPres) ProtoMessage() {} method ProtoReflect (line 2946) | func (x *ServerPres) ProtoReflect() protoreflect.Message { method Descriptor (line 2959) | func (*ServerPres) Descriptor() ([]byte, []int) { method GetTopic (line 2963) | func (x *ServerPres) GetTopic() string { method GetSrc (line 2970) | func (x *ServerPres) GetSrc() string { method GetWhat (line 2977) | func (x *ServerPres) GetWhat() ServerPres_What { method GetUserAgent (line 2984) | func (x *ServerPres) GetUserAgent() string { method GetSeqId (line 2991) | func (x *ServerPres) GetSeqId() int32 { method GetDelId (line 2998) | func (x *ServerPres) GetDelId() int32 { method GetDelSeq (line 3005) | func (x *ServerPres) GetDelSeq() []*SeqRange { method GetTargetUserId (line 3012) | func (x *ServerPres) GetTargetUserId() string { method GetActorUserId (line 3019) | func (x *ServerPres) GetActorUserId() string { method GetAcs (line 3026) | func (x *ServerPres) GetAcs() *AccessMode { type ServerMeta (line 3034) | type ServerMeta struct method Reset (line 3049) | func (x *ServerMeta) Reset() { method String (line 3058) | func (x *ServerMeta) String() string { method ProtoMessage (line 3062) | func (*ServerMeta) ProtoMessage() {} method ProtoReflect (line 3064) | func (x *ServerMeta) ProtoReflect() protoreflect.Message { method Descriptor (line 3077) | func (*ServerMeta) Descriptor() ([]byte, []int) { method GetId (line 3081) | func (x *ServerMeta) GetId() string { method GetTopic (line 3088) | func (x *ServerMeta) GetTopic() string { method GetDesc (line 3095) | func (x *ServerMeta) GetDesc() *TopicDesc { method GetSub (line 3102) | func (x *ServerMeta) GetSub() []*TopicSub { method GetDel (line 3109) | func (x *ServerMeta) GetDel() *DelValues { method GetTags (line 3116) | func (x *ServerMeta) GetTags() []string { method GetCred (line 3123) | func (x *ServerMeta) GetCred() []*ServerCred { method GetAux (line 3130) | func (x *ServerMeta) GetAux() map[string][]byte { type ServerInfo (line 3138) | type ServerInfo struct method Reset (line 3152) | func (x *ServerInfo) Reset() { method String (line 3161) | func (x *ServerInfo) String() string { method ProtoMessage (line 3165) | func (*ServerInfo) ProtoMessage() {} method ProtoReflect (line 3167) | func (x *ServerInfo) ProtoReflect() protoreflect.Message { method Descriptor (line 3180) | func (*ServerInfo) Descriptor() ([]byte, []int) { method GetTopic (line 3184) | func (x *ServerInfo) GetTopic() string { method GetFromUserId (line 3191) | func (x *ServerInfo) GetFromUserId() string { method GetWhat (line 3198) | func (x *ServerInfo) GetWhat() InfoNote { method GetSeqId (line 3205) | func (x *ServerInfo) GetSeqId() int32 { method GetSrc (line 3212) | func (x *ServerInfo) GetSrc() string { method GetEvent (line 3219) | func (x *ServerInfo) GetEvent() CallEvent { method GetPayload (line 3226) | func (x *ServerInfo) GetPayload() []byte { type ServerMsg (line 3234) | type ServerMsg struct method Reset (line 3253) | func (x *ServerMsg) Reset() { method String (line 3262) | func (x *ServerMsg) String() string { method ProtoMessage (line 3266) | func (*ServerMsg) ProtoMessage() {} method ProtoReflect (line 3268) | func (x *ServerMsg) ProtoReflect() protoreflect.Message { method Descriptor (line 3281) | func (*ServerMsg) Descriptor() ([]byte, []int) { method GetMessage (line 3285) | func (m *ServerMsg) GetMessage() isServerMsg_Message { method GetCtrl (line 3292) | func (x *ServerMsg) GetCtrl() *ServerCtrl { method GetData (line 3299) | func (x *ServerMsg) GetData() *ServerData { method GetPres (line 3306) | func (x *ServerMsg) GetPres() *ServerPres { method GetMeta (line 3313) | func (x *ServerMsg) GetMeta() *ServerMeta { method GetInfo (line 3320) | func (x *ServerMsg) GetInfo() *ServerInfo { method GetTopic (line 3328) | func (x *ServerMsg) GetTopic() string { type isServerMsg_Message (line 3335) | type isServerMsg_Message interface type ServerMsg_Ctrl (line 3339) | type ServerMsg_Ctrl struct method isServerMsg_Message (line 3359) | func (*ServerMsg_Ctrl) isServerMsg_Message() {} type ServerMsg_Data (line 3343) | type ServerMsg_Data struct method isServerMsg_Message (line 3361) | func (*ServerMsg_Data) isServerMsg_Message() {} type ServerMsg_Pres (line 3347) | type ServerMsg_Pres struct method isServerMsg_Message (line 3363) | func (*ServerMsg_Pres) isServerMsg_Message() {} type ServerMsg_Meta (line 3351) | type ServerMsg_Meta struct method isServerMsg_Message (line 3365) | func (*ServerMsg_Meta) isServerMsg_Message() {} type ServerMsg_Info (line 3355) | type ServerMsg_Info struct method isServerMsg_Message (line 3367) | func (*ServerMsg_Info) isServerMsg_Message() {} type ServerResp (line 3369) | type ServerResp struct method Reset (line 3379) | func (x *ServerResp) Reset() { method String (line 3388) | func (x *ServerResp) String() string { method ProtoMessage (line 3392) | func (*ServerResp) ProtoMessage() {} method ProtoReflect (line 3394) | func (x *ServerResp) ProtoReflect() protoreflect.Message { method Descriptor (line 3407) | func (*ServerResp) Descriptor() ([]byte, []int) { method GetStatus (line 3411) | func (x *ServerResp) GetStatus() RespCode { method GetSrvmsg (line 3418) | func (x *ServerResp) GetSrvmsg() *ServerMsg { method GetClmsg (line 3425) | func (x *ServerResp) GetClmsg() *ClientMsg { type Session (line 3433) | type Session struct method Reset (line 3447) | func (x *Session) Reset() { method String (line 3456) | func (x *Session) String() string { method ProtoMessage (line 3460) | func (*Session) ProtoMessage() {} method ProtoReflect (line 3462) | func (x *Session) ProtoReflect() protoreflect.Message { method Descriptor (line 3475) | func (*Session) Descriptor() ([]byte, []int) { method GetSessionId (line 3479) | func (x *Session) GetSessionId() string { method GetUserId (line 3486) | func (x *Session) GetUserId() string { method GetAuthLevel (line 3493) | func (x *Session) GetAuthLevel() AuthLevel { method GetRemoteAddr (line 3500) | func (x *Session) GetRemoteAddr() string { method GetUserAgent (line 3507) | func (x *Session) GetUserAgent() string { method GetDeviceId (line 3514) | func (x *Session) GetDeviceId() string { method GetLanguage (line 3521) | func (x *Session) GetLanguage() string { type ClientReq (line 3528) | type ClientReq struct method Reset (line 3537) | func (x *ClientReq) Reset() { method String (line 3546) | func (x *ClientReq) String() string { method ProtoMessage (line 3550) | func (*ClientReq) ProtoMessage() {} method ProtoReflect (line 3552) | func (x *ClientReq) ProtoReflect() protoreflect.Message { method Descriptor (line 3565) | func (*ClientReq) Descriptor() ([]byte, []int) { method GetMsg (line 3569) | func (x *ClientReq) GetMsg() *ClientMsg { method GetSess (line 3576) | func (x *ClientReq) GetSess() *Session { type SearchQuery (line 3583) | type SearchQuery struct method Reset (line 3592) | func (x *SearchQuery) Reset() { method String (line 3601) | func (x *SearchQuery) String() string { method ProtoMessage (line 3605) | func (*SearchQuery) ProtoMessage() {} method ProtoReflect (line 3607) | func (x *SearchQuery) ProtoReflect() protoreflect.Message { method Descriptor (line 3620) | func (*SearchQuery) Descriptor() ([]byte, []int) { method GetUserId (line 3624) | func (x *SearchQuery) GetUserId() string { method GetQuery (line 3631) | func (x *SearchQuery) GetQuery() string { type SearchFound (line 3638) | type SearchFound struct method Reset (line 3650) | func (x *SearchFound) Reset() { method String (line 3659) | func (x *SearchFound) String() string { method ProtoMessage (line 3663) | func (*SearchFound) ProtoMessage() {} method ProtoReflect (line 3665) | func (x *SearchFound) ProtoReflect() protoreflect.Message { method Descriptor (line 3678) | func (*SearchFound) Descriptor() ([]byte, []int) { method GetStatus (line 3682) | func (x *SearchFound) GetStatus() RespCode { method GetQuery (line 3689) | func (x *SearchFound) GetQuery() string { method GetResult (line 3696) | func (x *SearchFound) GetResult() []*TopicSub { type TopicEvent (line 3703) | type TopicEvent struct method Reset (line 3713) | func (x *TopicEvent) Reset() { method String (line 3722) | func (x *TopicEvent) String() string { method ProtoMessage (line 3726) | func (*TopicEvent) ProtoMessage() {} method ProtoReflect (line 3728) | func (x *TopicEvent) ProtoReflect() protoreflect.Message { method Descriptor (line 3741) | func (*TopicEvent) Descriptor() ([]byte, []int) { method GetAction (line 3745) | func (x *TopicEvent) GetAction() Crud { method GetName (line 3752) | func (x *TopicEvent) GetName() string { method GetDesc (line 3759) | func (x *TopicEvent) GetDesc() *TopicDesc { type AccountEvent (line 3766) | type AccountEvent struct method Reset (line 3779) | func (x *AccountEvent) Reset() { method String (line 3788) | func (x *AccountEvent) String() string { method ProtoMessage (line 3792) | func (*AccountEvent) ProtoMessage() {} method ProtoReflect (line 3794) | func (x *AccountEvent) ProtoReflect() protoreflect.Message { method Descriptor (line 3807) | func (*AccountEvent) Descriptor() ([]byte, []int) { method GetAction (line 3811) | func (x *AccountEvent) GetAction() Crud { method GetUserId (line 3818) | func (x *AccountEvent) GetUserId() string { method GetDefaultAcs (line 3825) | func (x *AccountEvent) GetDefaultAcs() *DefaultAcsMode { method GetPublic (line 3832) | func (x *AccountEvent) GetPublic() []byte { method GetTags (line 3839) | func (x *AccountEvent) GetTags() []string { type SubscriptionEvent (line 3846) | type SubscriptionEvent struct method Reset (line 3861) | func (x *SubscriptionEvent) Reset() { method String (line 3870) | func (x *SubscriptionEvent) String() string { method ProtoMessage (line 3874) | func (*SubscriptionEvent) ProtoMessage() {} method ProtoReflect (line 3876) | func (x *SubscriptionEvent) ProtoReflect() protoreflect.Message { method Descriptor (line 3889) | func (*SubscriptionEvent) Descriptor() ([]byte, []int) { method GetAction (line 3893) | func (x *SubscriptionEvent) GetAction() Crud { method GetTopic (line 3900) | func (x *SubscriptionEvent) GetTopic() string { method GetUserId (line 3907) | func (x *SubscriptionEvent) GetUserId() string { method GetDelId (line 3914) | func (x *SubscriptionEvent) GetDelId() int32 { method GetReadId (line 3921) | func (x *SubscriptionEvent) GetReadId() int32 { method GetRecvId (line 3928) | func (x *SubscriptionEvent) GetRecvId() int32 { method GetMode (line 3935) | func (x *SubscriptionEvent) GetMode() *AccessMode { method GetPrivate (line 3942) | func (x *SubscriptionEvent) GetPrivate() []byte { type MessageEvent (line 3949) | type MessageEvent struct method Reset (line 3958) | func (x *MessageEvent) Reset() { method String (line 3967) | func (x *MessageEvent) String() string { method ProtoMessage (line 3971) | func (*MessageEvent) ProtoMessage() {} method ProtoReflect (line 3973) | func (x *MessageEvent) ProtoReflect() protoreflect.Message { method Descriptor (line 3986) | func (*MessageEvent) Descriptor() ([]byte, []int) { method GetAction (line 3990) | func (x *MessageEvent) GetAction() Crud { method GetMsg (line 3997) | func (x *MessageEvent) GetMsg() *ServerData { type Auth (line 4004) | type Auth struct method Reset (line 4013) | func (x *Auth) Reset() { method String (line 4022) | func (x *Auth) String() string { method ProtoMessage (line 4026) | func (*Auth) ProtoMessage() {} method ProtoReflect (line 4028) | func (x *Auth) ProtoReflect() protoreflect.Message { method Descriptor (line 4041) | func (*Auth) Descriptor() ([]byte, []int) { method GetScheme (line 4045) | func (x *Auth) GetScheme() string { method GetSecret (line 4052) | func (x *Auth) GetSecret() string { type FileMeta (line 4060) | type FileMeta struct method Reset (line 4071) | func (x *FileMeta) Reset() { method String (line 4080) | func (x *FileMeta) String() string { method ProtoMessage (line 4084) | func (*FileMeta) ProtoMessage() {} method ProtoReflect (line 4086) | func (x *FileMeta) ProtoReflect() protoreflect.Message { method Descriptor (line 4099) | func (*FileMeta) Descriptor() ([]byte, []int) { method GetName (line 4103) | func (x *FileMeta) GetName() string { method GetMimeType (line 4110) | func (x *FileMeta) GetMimeType() string { method GetEtag (line 4117) | func (x *FileMeta) GetEtag() string { method GetSize (line 4124) | func (x *FileMeta) GetSize() int64 { type FileUpReq (line 4132) | type FileUpReq struct method Reset (line 4149) | func (x *FileUpReq) Reset() { method String (line 4158) | func (x *FileUpReq) String() string { method ProtoMessage (line 4162) | func (*FileUpReq) ProtoMessage() {} method ProtoReflect (line 4164) | func (x *FileUpReq) ProtoReflect() protoreflect.Message { method Descriptor (line 4177) | func (*FileUpReq) Descriptor() ([]byte, []int) { method GetId (line 4181) | func (x *FileUpReq) GetId() string { method GetAuth (line 4188) | func (x *FileUpReq) GetAuth() *Auth { method GetTopic (line 4195) | func (x *FileUpReq) GetTopic() string { method GetMeta (line 4202) | func (x *FileUpReq) GetMeta() *FileMeta { method GetContent (line 4209) | func (x *FileUpReq) GetContent() []byte { type FileUpResp (line 4217) | type FileUpResp struct method Reset (line 4233) | func (x *FileUpResp) Reset() { method String (line 4242) | func (x *FileUpResp) String() string { method ProtoMessage (line 4246) | func (*FileUpResp) ProtoMessage() {} method ProtoReflect (line 4248) | func (x *FileUpResp) ProtoReflect() protoreflect.Message { method Descriptor (line 4261) | func (*FileUpResp) Descriptor() ([]byte, []int) { method GetId (line 4265) | func (x *FileUpResp) GetId() string { method GetCode (line 4272) | func (x *FileUpResp) GetCode() int32 { method GetText (line 4279) | func (x *FileUpResp) GetText() string { method GetMeta (line 4286) | func (x *FileUpResp) GetMeta() *FileMeta { method GetRedirUrl (line 4293) | func (x *FileUpResp) GetRedirUrl() string { type FileDownReq (line 4301) | type FileDownReq struct method Reset (line 4316) | func (x *FileDownReq) Reset() { method String (line 4325) | func (x *FileDownReq) String() string { method ProtoMessage (line 4329) | func (*FileDownReq) ProtoMessage() {} method ProtoReflect (line 4331) | func (x *FileDownReq) ProtoReflect() protoreflect.Message { method Descriptor (line 4344) | func (*FileDownReq) Descriptor() ([]byte, []int) { method GetId (line 4348) | func (x *FileDownReq) GetId() string { method GetAuth (line 4355) | func (x *FileDownReq) GetAuth() *Auth { method GetUri (line 4362) | func (x *FileDownReq) GetUri() string { method GetIfModified (line 4369) | func (x *FileDownReq) GetIfModified() string { type FileDownResp (line 4377) | type FileDownResp struct method Reset (line 4395) | func (x *FileDownResp) Reset() { method String (line 4404) | func (x *FileDownResp) String() string { method ProtoMessage (line 4408) | func (*FileDownResp) ProtoMessage() {} method ProtoReflect (line 4410) | func (x *FileDownResp) ProtoReflect() protoreflect.Message { method Descriptor (line 4423) | func (*FileDownResp) Descriptor() ([]byte, []int) { method GetId (line 4427) | func (x *FileDownResp) GetId() string { method GetCode (line 4434) | func (x *FileDownResp) GetCode() int32 { method GetText (line 4441) | func (x *FileDownResp) GetText() string { method GetMeta (line 4448) | func (x *FileDownResp) GetMeta() *FileMeta { method GetRedirUrl (line 4455) | func (x *FileDownResp) GetRedirUrl() string { method GetContent (line 4462) | func (x *FileDownResp) GetContent() []byte { function file_model_proto_rawDescGZIP (line 5051) | func file_model_proto_rawDescGZIP() []byte { function init (line 5226) | func init() { file_model_proto_init() } function file_model_proto_init (line 5227) | func file_model_proto_init() { FILE: pbx/model_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type NodeClient (line 24) | type NodeClient interface type nodeClient (line 33) | type nodeClient struct method MessageLoop (line 41) | func (c *nodeClient) MessageLoop(ctx context.Context, opts ...grpc.Cal... method LargeFileReceive (line 72) | func (c *nodeClient) LargeFileReceive(ctx context.Context, opts ...grp... method LargeFileServe (line 106) | func (c *nodeClient) LargeFileServe(ctx context.Context, in *FileDownR... function NewNodeClient (line 37) | func NewNodeClient(cc grpc.ClientConnInterface) NodeClient { type Node_MessageLoopClient (line 50) | type Node_MessageLoopClient interface type nodeMessageLoopClient (line 56) | type nodeMessageLoopClient struct method Send (line 60) | func (x *nodeMessageLoopClient) Send(m *ClientMsg) error { method Recv (line 64) | func (x *nodeMessageLoopClient) Recv() (*ServerMsg, error) { type Node_LargeFileReceiveClient (line 81) | type Node_LargeFileReceiveClient interface type nodeLargeFileReceiveClient (line 87) | type nodeLargeFileReceiveClient struct method Send (line 91) | func (x *nodeLargeFileReceiveClient) Send(m *FileUpReq) error { method CloseAndRecv (line 95) | func (x *nodeLargeFileReceiveClient) CloseAndRecv() (*FileUpResp, erro... type Node_LargeFileServeClient (line 121) | type Node_LargeFileServeClient interface type nodeLargeFileServeClient (line 126) | type nodeLargeFileServeClient struct method Recv (line 130) | func (x *nodeLargeFileServeClient) Recv() (*FileDownResp, error) { type NodeServer (line 141) | type NodeServer interface type UnimplementedNodeServer (line 152) | type UnimplementedNodeServer struct method MessageLoop (line 155) | func (UnimplementedNodeServer) MessageLoop(Node_MessageLoopServer) err... method LargeFileReceive (line 158) | func (UnimplementedNodeServer) LargeFileReceive(Node_LargeFileReceiveS... method LargeFileServe (line 161) | func (UnimplementedNodeServer) LargeFileServe(*FileDownReq, Node_Large... method mustEmbedUnimplementedNodeServer (line 164) | func (UnimplementedNodeServer) mustEmbedUnimplementedNodeServer() {} type UnsafeNodeServer (line 169) | type UnsafeNodeServer interface function RegisterNodeServer (line 173) | func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer) { function _Node_MessageLoop_Handler (line 177) | func _Node_MessageLoop_Handler(srv interface{}, stream grpc.ServerStream... type Node_MessageLoopServer (line 181) | type Node_MessageLoopServer interface type nodeMessageLoopServer (line 187) | type nodeMessageLoopServer struct method Send (line 191) | func (x *nodeMessageLoopServer) Send(m *ServerMsg) error { method Recv (line 195) | func (x *nodeMessageLoopServer) Recv() (*ClientMsg, error) { function _Node_LargeFileReceive_Handler (line 203) | func _Node_LargeFileReceive_Handler(srv interface{}, stream grpc.ServerS... type Node_LargeFileReceiveServer (line 207) | type Node_LargeFileReceiveServer interface type nodeLargeFileReceiveServer (line 213) | type nodeLargeFileReceiveServer struct method SendAndClose (line 217) | func (x *nodeLargeFileReceiveServer) SendAndClose(m *FileUpResp) error { method Recv (line 221) | func (x *nodeLargeFileReceiveServer) Recv() (*FileUpReq, error) { function _Node_LargeFileServe_Handler (line 229) | func _Node_LargeFileServe_Handler(srv interface{}, stream grpc.ServerStr... type Node_LargeFileServeServer (line 237) | type Node_LargeFileServeServer interface type nodeLargeFileServeServer (line 242) | type nodeLargeFileServeServer struct method Send (line 246) | func (x *nodeLargeFileServeServer) Send(m *FileDownResp) error { type PluginClient (line 281) | type PluginClient interface type pluginClient (line 299) | type pluginClient struct method FireHose (line 307) | func (c *pluginClient) FireHose(ctx context.Context, in *ClientReq, op... method Find (line 316) | func (c *pluginClient) Find(ctx context.Context, in *SearchQuery, opts... method Account (line 325) | func (c *pluginClient) Account(ctx context.Context, in *AccountEvent, ... method Topic (line 334) | func (c *pluginClient) Topic(ctx context.Context, in *TopicEvent, opts... method Subscription (line 343) | func (c *pluginClient) Subscription(ctx context.Context, in *Subscript... method Message (line 352) | func (c *pluginClient) Message(ctx context.Context, in *MessageEvent, ... function NewPluginClient (line 303) | func NewPluginClient(cc grpc.ClientConnInterface) PluginClient { type PluginServer (line 364) | type PluginServer interface type UnimplementedPluginServer (line 384) | type UnimplementedPluginServer struct method FireHose (line 387) | func (UnimplementedPluginServer) FireHose(context.Context, *ClientReq)... method Find (line 390) | func (UnimplementedPluginServer) Find(context.Context, *SearchQuery) (... method Account (line 393) | func (UnimplementedPluginServer) Account(context.Context, *AccountEven... method Topic (line 396) | func (UnimplementedPluginServer) Topic(context.Context, *TopicEvent) (... method Subscription (line 399) | func (UnimplementedPluginServer) Subscription(context.Context, *Subscr... method Message (line 402) | func (UnimplementedPluginServer) Message(context.Context, *MessageEven... method mustEmbedUnimplementedPluginServer (line 405) | func (UnimplementedPluginServer) mustEmbedUnimplementedPluginServer() {} type UnsafePluginServer (line 410) | type UnsafePluginServer interface function RegisterPluginServer (line 414) | func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer) { function _Plugin_FireHose_Handler (line 418) | func _Plugin_FireHose_Handler(srv interface{}, ctx context.Context, dec ... function _Plugin_Find_Handler (line 436) | func _Plugin_Find_Handler(srv interface{}, ctx context.Context, dec func... function _Plugin_Account_Handler (line 454) | func _Plugin_Account_Handler(srv interface{}, ctx context.Context, dec f... function _Plugin_Topic_Handler (line 472) | func _Plugin_Topic_Handler(srv interface{}, ctx context.Context, dec fun... function _Plugin_Subscription_Handler (line 490) | func _Plugin_Subscription_Handler(srv interface{}, ctx context.Context, ... function _Plugin_Message_Handler (line 508) | func _Plugin_Message_Handler(srv interface{}, ctx context.Context, dec f... FILE: py_grpc/tinode_grpc/model_pb2.pyi class AuthLevel (line 9) | class AuthLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): class InfoNote (line 16) | class InfoNote(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): class CallEvent (line 24) | class CallEvent(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): class RespCode (line 35) | class RespCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): class Crud (line 42) | class Crud(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): class Unused (line 72) | class Unused(_message.Message): method __init__ (line 74) | def __init__(self) -> None: ... class DefaultAcsMode (line 76) | class DefaultAcsMode(_message.Message): method __init__ (line 82) | def __init__(self, auth: _Optional[str] = ..., anon: _Optional[str] = ... class AccessMode (line 84) | class AccessMode(_message.Message): method __init__ (line 90) | def __init__(self, want: _Optional[str] = ..., given: _Optional[str] =... class SetSub (line 92) | class SetSub(_message.Message): method __init__ (line 98) | def __init__(self, user_id: _Optional[str] = ..., mode: _Optional[str]... class ClientCred (line 100) | class ClientCred(_message.Message): class ParamsEntry (line 102) | class ParamsEntry(_message.Message): method __init__ (line 108) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 117) | def __init__(self, method: _Optional[str] = ..., value: _Optional[str]... class SetDesc (line 119) | class SetDesc(_message.Message): method __init__ (line 129) | def __init__(self, default_acs: _Optional[_Union[DefaultAcsMode, _Mapp... class SeqRange (line 131) | class SeqRange(_message.Message): method __init__ (line 137) | def __init__(self, low: _Optional[int] = ..., hi: _Optional[int] = ...... class GetOpts (line 139) | class GetOpts(_message.Message): method __init__ (line 155) | def __init__(self, if_modified_since: _Optional[int] = ..., user: _Opt... class GetQuery (line 157) | class GetQuery(_message.Message): method __init__ (line 167) | def __init__(self, what: _Optional[str] = ..., desc: _Optional[_Union[... class SetQuery (line 169) | class SetQuery(_message.Message): class AuxEntry (line 171) | class AuxEntry(_message.Message): method __init__ (line 177) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 188) | def __init__(self, desc: _Optional[_Union[SetDesc, _Mapping]] = ..., s... class ClientHi (line 190) | class ClientHi(_message.Message): method __init__ (line 206) | def __init__(self, id: _Optional[str] = ..., user_agent: _Optional[str... class ClientAcc (line 208) | class ClientAcc(_message.Message): method __init__ (line 236) | def __init__(self, id: _Optional[str] = ..., user_id: _Optional[str] =... class ClientLogin (line 238) | class ClientLogin(_message.Message): method __init__ (line 248) | def __init__(self, id: _Optional[str] = ..., scheme: _Optional[str] = ... class ClientSub (line 250) | class ClientSub(_message.Message): method __init__ (line 260) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientLeave (line 262) | class ClientLeave(_message.Message): method __init__ (line 270) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientPub (line 272) | class ClientPub(_message.Message): class HeadEntry (line 274) | class HeadEntry(_message.Message): method __init__ (line 280) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 291) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientGet (line 293) | class ClientGet(_message.Message): method __init__ (line 301) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientSet (line 303) | class ClientSet(_message.Message): method __init__ (line 311) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientDel (line 313) | class ClientDel(_message.Message): class What (line 315) | class What(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): method __init__ (line 343) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ClientNote (line 345) | class ClientNote(_message.Message): method __init__ (line 359) | def __init__(self, topic: _Optional[str] = ..., what: _Optional[_Union... class ClientExtra (line 361) | class ClientExtra(_message.Message): method __init__ (line 369) | def __init__(self, attachments: _Optional[_Iterable[str]] = ..., on_be... class ClientMsg (line 371) | class ClientMsg(_message.Message): method __init__ (line 394) | def __init__(self, hi: _Optional[_Union[ClientHi, _Mapping]] = ..., ac... class ServerCred (line 396) | class ServerCred(_message.Message): method __init__ (line 404) | def __init__(self, method: _Optional[str] = ..., value: _Optional[str]... class TopicDesc (line 406) | class TopicDesc(_message.Message): method __init__ (line 444) | def __init__(self, created_at: _Optional[int] = ..., updated_at: _Opti... class TopicSub (line 446) | class TopicSub(_message.Message): method __init__ (line 480) | def __init__(self, updated_at: _Optional[int] = ..., deleted_at: _Opti... class DelValues (line 482) | class DelValues(_message.Message): method __init__ (line 488) | def __init__(self, del_id: _Optional[int] = ..., del_seq: _Optional[_I... class ServerCtrl (line 490) | class ServerCtrl(_message.Message): class ParamsEntry (line 492) | class ParamsEntry(_message.Message): method __init__ (line 498) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 509) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ServerData (line 511) | class ServerData(_message.Message): class HeadEntry (line 513) | class HeadEntry(_message.Message): method __init__ (line 519) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 534) | def __init__(self, topic: _Optional[str] = ..., from_user_id: _Optiona... class ServerPres (line 536) | class ServerPres(_message.Message): class What (line 538) | class What(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): method __init__ (line 588) | def __init__(self, topic: _Optional[str] = ..., src: _Optional[str] = ... class ServerMeta (line 590) | class ServerMeta(_message.Message): class AuxEntry (line 592) | class AuxEntry(_message.Message): method __init__ (line 598) | def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes... method __init__ (line 614) | def __init__(self, id: _Optional[str] = ..., topic: _Optional[str] = .... class ServerInfo (line 616) | class ServerInfo(_message.Message): method __init__ (line 632) | def __init__(self, topic: _Optional[str] = ..., from_user_id: _Optiona... class ServerMsg (line 634) | class ServerMsg(_message.Message): method __init__ (line 648) | def __init__(self, ctrl: _Optional[_Union[ServerCtrl, _Mapping]] = ...... class ServerResp (line 650) | class ServerResp(_message.Message): method __init__ (line 658) | def __init__(self, status: _Optional[_Union[RespCode, str]] = ..., srv... class Session (line 660) | class Session(_message.Message): method __init__ (line 676) | def __init__(self, session_id: _Optional[str] = ..., user_id: _Optiona... class ClientReq (line 678) | class ClientReq(_message.Message): method __init__ (line 684) | def __init__(self, msg: _Optional[_Union[ClientMsg, _Mapping]] = ..., ... class SearchQuery (line 686) | class SearchQuery(_message.Message): method __init__ (line 692) | def __init__(self, user_id: _Optional[str] = ..., query: _Optional[str... class SearchFound (line 694) | class SearchFound(_message.Message): method __init__ (line 702) | def __init__(self, status: _Optional[_Union[RespCode, str]] = ..., que... class TopicEvent (line 704) | class TopicEvent(_message.Message): method __init__ (line 712) | def __init__(self, action: _Optional[_Union[Crud, str]] = ..., name: _... class AccountEvent (line 714) | class AccountEvent(_message.Message): method __init__ (line 726) | def __init__(self, action: _Optional[_Union[Crud, str]] = ..., user_id... class SubscriptionEvent (line 728) | class SubscriptionEvent(_message.Message): method __init__ (line 746) | def __init__(self, action: _Optional[_Union[Crud, str]] = ..., topic: ... class MessageEvent (line 748) | class MessageEvent(_message.Message): method __init__ (line 754) | def __init__(self, action: _Optional[_Union[Crud, str]] = ..., msg: _O... class Auth (line 756) | class Auth(_message.Message): method __init__ (line 762) | def __init__(self, scheme: _Optional[str] = ..., secret: _Optional[str... class FileMeta (line 764) | class FileMeta(_message.Message): method __init__ (line 774) | def __init__(self, name: _Optional[str] = ..., mime_type: _Optional[st... class FileUpReq (line 776) | class FileUpReq(_message.Message): method __init__ (line 788) | def __init__(self, id: _Optional[str] = ..., auth: _Optional[_Union[Au... class FileUpResp (line 790) | class FileUpResp(_message.Message): method __init__ (line 802) | def __init__(self, id: _Optional[str] = ..., code: _Optional[int] = ..... class FileDownReq (line 804) | class FileDownReq(_message.Message): method __init__ (line 814) | def __init__(self, id: _Optional[str] = ..., auth: _Optional[_Union[Au... class FileDownResp (line 816) | class FileDownResp(_message.Message): method __init__ (line 830) | def __init__(self, id: _Optional[str] = ..., code: _Optional[int] = ..... FILE: py_grpc/tinode_grpc/model_pb2_grpc.py class NodeStub (line 8) | class NodeStub(object): method __init__ (line 12) | def __init__(self, channel): class NodeServicer (line 35) | class NodeServicer(object): method MessageLoop (line 39) | def MessageLoop(self, request_iterator, context): method LargeFileReceive (line 46) | def LargeFileReceive(self, request_iterator, context): method LargeFileServe (line 53) | def LargeFileServe(self, request, context): function add_NodeServicer_to_server (line 61) | def add_NodeServicer_to_server(servicer, server): class Node (line 85) | class Node(object): method MessageLoop (line 90) | def MessageLoop(request_iterator, method LargeFileReceive (line 107) | def LargeFileReceive(request_iterator, method LargeFileServe (line 124) | def LargeFileServe(request, class PluginStub (line 141) | class PluginStub(object): method __init__ (line 145) | def __init__(self, channel): class PluginServicer (line 183) | class PluginServicer(object): method FireHose (line 187) | def FireHose(self, request, context): method Find (line 196) | def Find(self, request, context): method Account (line 204) | def Account(self, request, context): method Topic (line 213) | def Topic(self, request, context): method Subscription (line 220) | def Subscription(self, request, context): method Message (line 227) | def Message(self, request, context): function add_PluginServicer_to_server (line 235) | def add_PluginServicer_to_server(servicer, server): class Plugin (line 274) | class Plugin(object): method FireHose (line 279) | def FireHose(request, method Find (line 296) | def Find(request, method Account (line 313) | def Account(request, method Topic (line 330) | def Topic(request, method Subscription (line 347) | def Subscription(request, method Message (line 364) | def Message(request, FILE: py_grpc/version.py function git_version (line 7) | def git_version(): FILE: rest-auth/auth.py function parse_secret (line 14) | def parse_secret(ecoded_secret): function index (line 19) | def index(): function add (line 24) | def add(): function auth (line 28) | def auth(): function checkunique (line 65) | def checkunique(): function xdel (line 69) | def xdel(): function gen (line 73) | def gen(): function link (line 77) | def link(): function upd (line 104) | def upd(): function rtags (line 108) | def rtags(): function not_found (line 113) | def not_found(error): function not_found (line 117) | def not_found(error): FILE: server/api_key.go constant apikeyVersion (line 28) | apikeyVersion = 1 constant apikeyAppID (line 30) | apikeyAppID = 4 constant apikeySequence (line 32) | apikeySequence = 2 constant apikeyWho (line 34) | apikeyWho = 1 constant apikeySignature (line 36) | apikeySignature = 16 constant apikeyLength (line 38) | apikeyLength = apikeyVersion + apikeyAppID + apikeySequence + apikeyWho ... function checkAPIKey (line 46) | func checkAPIKey(apikey string) (isValid, isRoot bool) { FILE: server/auth/anon/auth_anon.go type authenticator (line 16) | type authenticator struct method Init (line 21) | func (a *authenticator) Init(_ json.RawMessage, name string) error { method IsInitialized (line 35) | func (a *authenticator) IsInitialized() bool { method AddRecord (line 41) | func (authenticator) AddRecord(rec *auth.Rec, secret []byte, remoteAdd... method UpdateRecord (line 50) | func (authenticator) UpdateRecord(rec *auth.Rec, secret []byte, remote... method Authenticate (line 55) | func (authenticator) Authenticate(secret []byte, remoteAddr string) (*... method AsTag (line 60) | func (authenticator) AsTag(token string) string { method IsUnique (line 65) | func (authenticator) IsUnique(secret []byte, remoteAddr string) (bool,... method GenSecret (line 70) | func (authenticator) GenSecret(rec *auth.Rec) ([]byte, time.Time, erro... method DelRecords (line 75) | func (authenticator) DelRecords(uid types.Uid) error { method RestrictedTags (line 80) | func (authenticator) RestrictedTags() ([]string, error) { method GetResetParams (line 86) | func (authenticator) GetResetParams(uid types.Uid) (map[string]any, er... method GetRealName (line 93) | func (authenticator) GetRealName() string { constant realName (line 90) | realName = "anonymous" function init (line 97) | func init() { FILE: server/auth/auth.go type Level (line 14) | type Level method String (line 29) | func (a Level) String() string { method MarshalText (line 52) | func (a Level) MarshalText() ([]byte, error) { method UnmarshalText (line 68) | func (a *Level) UnmarshalText(b []byte) error { method MarshalJSON (line 88) | func (a Level) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 98) | func (a *Level) UnmarshalJSON(b []byte) error { constant LevelNone (line 19) | LevelNone Level = iota * 10 constant LevelAnon (line 21) | LevelAnon constant LevelAuth (line 23) | LevelAuth constant LevelRoot (line 25) | LevelRoot function ParseAuthLevel (line 38) | func ParseAuthLevel(name string) Level { type Feature (line 107) | type Feature method MarshalText (line 117) | func (f Feature) MarshalText() ([]byte, error) { method UnmarshalText (line 128) | func (f *Feature) UnmarshalText(b []byte) error { method String (line 156) | func (f Feature) String() string { method MarshalJSON (line 165) | func (f Feature) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 175) | func (f *Feature) UnmarshalJSON(b []byte) error { constant FeatureValidated (line 111) | FeatureValidated Feature = 1 << iota constant FeatureNoLogin (line 113) | FeatureNoLogin type Duration (line 183) | type Duration method UnmarshalJSON (line 186) | func (d *Duration) UnmarshalJSON(b []byte) error { type Rec (line 208) | type Rec struct type AuthHandler (line 232) | type AuthHandler interface FILE: server/auth/basic/auth_basic.go constant defaultMinLoginLength (line 20) | defaultMinLoginLength = 2 constant defaultMaxLoginLength (line 21) | defaultMaxLoginLength = 32 constant defaultMinPasswordLength (line 23) | defaultMinPasswordLength = 3 type authenticator (line 31) | type authenticator struct method checkLoginPolicy (line 39) | func (a *authenticator) checkLoginPolicy(uname string) error { method checkPasswordPolicy (line 48) | func (a *authenticator) checkPasswordPolicy(password string) error { method Init (line 71) | func (a *authenticator) Init(jsonconf json.RawMessage, name string) er... method IsInitialized (line 109) | func (a *authenticator) IsInitialized() bool { method AddRecord (line 114) | func (a *authenticator) AddRecord(rec *auth.Rec, secret []byte, remote... method UpdateRecord (line 155) | func (a *authenticator) UpdateRecord(rec *auth.Rec, secret []byte, rem... method Authenticate (line 216) | func (a *authenticator) Authenticate(secret []byte, remoteAddr string)... method AsTag (line 254) | func (a *authenticator) AsTag(token string) string { method IsUnique (line 267) | func (a *authenticator) IsUnique(secret []byte, remoteAddr string) (bo... method GenSecret (line 289) | func (authenticator) GenSecret(rec *auth.Rec) ([]byte, time.Time, erro... method DelRecords (line 294) | func (a *authenticator) DelRecords(uid types.Uid) error { method RestrictedTags (line 299) | func (a *authenticator) RestrictedTags() ([]string, error) { method GetResetParams (line 308) | func (a *authenticator) GetResetParams(uid types.Uid) (map[string]any,... method GetRealName (line 326) | func (authenticator) GetRealName() string { function parseSecret (line 56) | func parseSecret(bsecret []byte) (uname, password string, err error) { constant realName (line 323) | realName = "basic" function init (line 330) | func init() { FILE: server/auth/code/auth_code.go type authenticator (line 20) | type authenticator struct method Init (line 29) | func (ca *authenticator) Init(jsonconf json.RawMessage, name string) e... method IsInitialized (line 73) | func (ca *authenticator) IsInitialized() bool { method AddRecord (line 78) | func (authenticator) AddRecord(rec *auth.Rec, secret []byte, remoteAdd... method UpdateRecord (line 83) | func (authenticator) UpdateRecord(rec *auth.Rec, secret []byte, remote... method Authenticate (line 89) | func (ca *authenticator) Authenticate(secret []byte, remoteAddr string... method GenSecret (line 142) | func (ca *authenticator) GenSecret(rec *auth.Rec) ([]byte, time.Time, ... method AsTag (line 173) | func (authenticator) AsTag(token string) string { method IsUnique (line 178) | func (authenticator) IsUnique(secret []byte, remoteAddr string) (bool,... method DelRecords (line 183) | func (authenticator) DelRecords(uid types.Uid) error { method RestrictedTags (line 188) | func (authenticator) RestrictedTags() ([]string, error) { method GetResetParams (line 194) | func (authenticator) GetResetParams(uid types.Uid) (map[string]any, er... method GetRealName (line 206) | func (authenticator) GetRealName() string { function sanitizeKey (line 199) | func sanitizeKey(key string) string { constant realName (line 203) | realName = "code" function init (line 210) | func init() { FILE: server/auth/mock_auth/mock_auth.go type MockAuthHandler (line 18) | type MockAuthHandler struct method EXPECT (line 36) | func (m *MockAuthHandler) EXPECT() *MockAuthHandlerMockRecorder { method AddRecord (line 41) | func (m *MockAuthHandler) AddRecord(rec *auth.Rec, secret []byte, remo... method AsTag (line 56) | func (m *MockAuthHandler) AsTag(token string) string { method Authenticate (line 70) | func (m *MockAuthHandler) Authenticate(secret []byte, remoteAddr strin... method DelRecords (line 86) | func (m *MockAuthHandler) DelRecords(uid types.Uid) error { method GenSecret (line 100) | func (m *MockAuthHandler) GenSecret(rec *auth.Rec) ([]byte, time.Time,... method GetRealName (line 116) | func (m *MockAuthHandler) GetRealName() string { method GetResetParams (line 130) | func (m *MockAuthHandler) GetResetParams(uid types.Uid) (map[string]an... method Init (line 145) | func (m *MockAuthHandler) Init(jsonconf json.RawMessage, name string) ... method IsInitialized (line 159) | func (m *MockAuthHandler) IsInitialized() bool { method IsUnique (line 173) | func (m *MockAuthHandler) IsUnique(secret []byte, remoteAddr string) (... method RestrictedTags (line 188) | func (m *MockAuthHandler) RestrictedTags() ([]string, error) { method UpdateRecord (line 203) | func (m *MockAuthHandler) UpdateRecord(rec *auth.Rec, secret []byte, r... type MockAuthHandlerMockRecorder (line 24) | type MockAuthHandlerMockRecorder struct method AddRecord (line 50) | func (mr *MockAuthHandlerMockRecorder) AddRecord(rec, secret, remoteAd... method AsTag (line 64) | func (mr *MockAuthHandlerMockRecorder) AsTag(token interface{}) *gomoc... method Authenticate (line 80) | func (mr *MockAuthHandlerMockRecorder) Authenticate(secret, remoteAddr... method DelRecords (line 94) | func (mr *MockAuthHandlerMockRecorder) DelRecords(uid interface{}) *go... method GenSecret (line 110) | func (mr *MockAuthHandlerMockRecorder) GenSecret(rec interface{}) *gom... method GetRealName (line 124) | func (mr *MockAuthHandlerMockRecorder) GetRealName() *gomock.Call { method GetResetParams (line 139) | func (mr *MockAuthHandlerMockRecorder) GetResetParams(uid interface{})... method Init (line 153) | func (mr *MockAuthHandlerMockRecorder) Init(jsonconf, name interface{}... method IsInitialized (line 167) | func (mr *MockAuthHandlerMockRecorder) IsInitialized() *gomock.Call { method IsUnique (line 182) | func (mr *MockAuthHandlerMockRecorder) IsUnique(secret, remoteAddr int... method RestrictedTags (line 197) | func (mr *MockAuthHandlerMockRecorder) RestrictedTags() *gomock.Call { method UpdateRecord (line 212) | func (mr *MockAuthHandlerMockRecorder) UpdateRecord(rec, secret, remot... function NewMockAuthHandler (line 29) | func NewMockAuthHandler(ctrl *gomock.Controller) *MockAuthHandler { FILE: server/auth/rest/auth_rest.go type authenticator (line 22) | type authenticator struct method Init (line 78) | func (a *authenticator) Init(jsonconf json.RawMessage, name string) er... method IsInitialized (line 120) | func (a *authenticator) IsInitialized() bool { method callEndpoint (line 125) | func (a *authenticator) callEndpoint(endpoint string, rec *auth.Rec, s... method AddRecord (line 174) | func (a *authenticator) AddRecord(rec *auth.Rec, secret []byte, remote... method UpdateRecord (line 184) | func (a *authenticator) UpdateRecord(rec *auth.Rec, secret []byte, rem... method Authenticate (line 190) | func (a *authenticator) Authenticate(secret []byte, remoteAddr string)... method AsTag (line 237) | func (a *authenticator) AsTag(token string) string { method IsUnique (line 250) | func (a *authenticator) IsUnique(secret []byte, remoteAddr string) (bo... method GenSecret (line 260) | func (a *authenticator) GenSecret(rec *auth.Rec) ([]byte, time.Time, e... method DelRecords (line 270) | func (a *authenticator) DelRecords(uid types.Uid) error { method RestrictedTags (line 277) | func (a *authenticator) RestrictedTags() ([]string, error) { method GetResetParams (line 305) | func (authenticator) GetResetParams(uid types.Uid) (map[string]any, er... method GetRealName (line 313) | func (authenticator) GetRealName() string { type request (line 38) | type request struct type newAccount (line 47) | type newAccount struct type response (line 60) | type response struct constant realName (line 310) | realName = "rest" function init (line 317) | func init() { FILE: server/auth/token/auth_token.go type authenticator (line 19) | type authenticator struct method Init (line 42) | func (ta *authenticator) Init(jsonconf json.RawMessage, name string) e... method IsInitialized (line 80) | func (ta *authenticator) IsInitialized() bool { method AddRecord (line 85) | func (authenticator) AddRecord(rec *auth.Rec, secret []byte, remoteAdd... method UpdateRecord (line 90) | func (authenticator) UpdateRecord(rec *auth.Rec, secret []byte, remote... method Authenticate (line 95) | func (ta *authenticator) Authenticate(token []byte, remoteAddr string)... method GenSecret (line 144) | func (ta *authenticator) GenSecret(rec *auth.Rec) ([]byte, time.Time, ... method AsTag (line 170) | func (authenticator) AsTag(token string) string { method IsUnique (line 175) | func (authenticator) IsUnique(token []byte, remoteAddr string) (bool, ... method DelRecords (line 180) | func (authenticator) DelRecords(uid types.Uid) error { method RestrictedTags (line 185) | func (authenticator) RestrictedTags() ([]string, error) { method GetResetParams (line 191) | func (authenticator) GetResetParams(uid types.Uid) (map[string]any, er... method GetRealName (line 198) | func (authenticator) GetRealName() string { type tokenLayout (line 28) | type tokenLayout struct constant realName (line 195) | realName = "token" function init (line 202) | func init() { FILE: server/calls.go constant constCallEventRinging (line 27) | constCallEventRinging = "ringing" constant constCallEventAccept (line 29) | constCallEventAccept = "accept" constant constCallEventOffer (line 31) | constCallEventOffer = "offer" constant constCallEventAnswer (line 32) | constCallEventAnswer = "answer" constant constCallEventIceCandidate (line 33) | constCallEventIceCandidate = "ice-candidate" constant constCallEventHangUp (line 35) | constCallEventHangUp = "hang-up" constant constCallMsgAccepted (line 39) | constCallMsgAccepted = "accepted" constant constCallMsgFinished (line 41) | constCallMsgFinished = "finished" constant constCallMsgDisconnected (line 43) | constCallMsgDisconnected = "disconnected" constant constCallMsgMissed (line 45) | constCallMsgMissed = "missed" constant constCallMsgDeclined (line 47) | constCallMsgDeclined = "declined" type callConfig (line 50) | type callConfig struct type iceServer (line 62) | type iceServer struct type callPartyData (line 70) | type callPartyData struct type videoCall (line 80) | type videoCall struct method messageHead (line 176) | func (call *videoCall) messageHead(head map[string]any, newState strin... method infoMessage (line 196) | func (call *videoCall) infoMessage(event string) *ServerComMessage { function callPartySession (line 94) | func callPartySession(sess *Session) *Session { function initVideoCalls (line 116) | func initVideoCalls(jsconfig json.RawMessage) error { method getCallOriginator (line 208) | func (t *Topic) getCallOriginator() (types.Uid, *Session) { method handleCallInvite (line 222) | func (t *Topic) handleCallInvite(msg *ClientComMessage, asUid types.Uid) { method handleCallEvent (line 241) | func (t *Topic) handleCallEvent(msg *ClientComMessage) { method maybeEndCallInProgress (line 377) | func (t *Topic) maybeEndCallInProgress(from string, msg *ClientComMessag... method terminateCallInProgress (line 433) | func (t *Topic) terminateCallInProgress(callDidTimeout bool) { FILE: server/cluster.go constant clusterNetworkTimeout (line 24) | clusterNetworkTimeout = 3 * time.Second constant clusterDefaultReconnectTime (line 26) | clusterDefaultReconnectTime = 200 * time.Millisecond constant clusterHashReplicas (line 28) | clusterHashReplicas = 20 constant clusterProxyToMasterBuffer (line 30) | clusterProxyToMasterBuffer = 64 constant clusterProxyToMasterBufferPerNode (line 32) | clusterProxyToMasterBufferPerNode = 16 constant clusterP2MTimeout (line 34) | clusterP2MTimeout = 20 * time.Millisecond constant clusterRpcCompletionBuffer (line 36) | clusterRpcCompletionBuffer = 64 type ProxyReqType (line 40) | type ProxyReqType constant ProxyReqNone (line 44) | ProxyReqNone ProxyReqType = iota constant ProxyReqJoin (line 45) | ProxyReqJoin constant ProxyReqLeave (line 46) | ProxyReqLeave constant ProxyReqMeta (line 47) | ProxyReqMeta constant ProxyReqBroadcast (line 48) | ProxyReqBroadcast constant ProxyReqBgSession (line 49) | ProxyReqBgSession constant ProxyReqMeUserAgent (line 50) | ProxyReqMeUserAgent constant ProxyReqCall (line 51) | ProxyReqCall type clusterNodeConfig (line 54) | type clusterNodeConfig struct type clusterConfig (line 59) | type clusterConfig struct type ClusterNode (line 71) | type ClusterNode struct method asyncRpcLoop (line 104) | func (n *ClusterNode) asyncRpcLoop() { method p2mSenderLoop (line 110) | func (n *ClusterNode) p2mSenderLoop() { method reconnect (line 248) | func (n *ClusterNode) reconnect() { method call (line 309) | func (n *ClusterNode) call(proc string, req, resp any) error { method handleRpcResponse (line 331) | func (n *ClusterNode) handleRpcResponse(call *rpc.Call) { method callAsync (line 345) | func (n *ClusterNode) callAsync(proc string, req, resp any, done chan ... method proxyToMaster (line 386) | func (n *ClusterNode) proxyToMaster(msg *ClusterReq) error { method proxyToMasterAsync (line 397) | func (n *ClusterNode) proxyToMasterAsync(msg *ClusterReq) error { method masterToProxyAsync (line 416) | func (n *ClusterNode) masterToProxyAsync(msg *ClusterResp) error { method route (line 425) | func (n *ClusterNode) route(msg *ClusterRoute) error { method stopMultiplexingSession (line 458) | func (n *ClusterNode) stopMultiplexingSession(msess *Session) { type ClusterSess (line 124) | type ClusterSess struct type ClusterSessUpdate (line 160) | type ClusterSessUpdate struct type ClusterReq (line 170) | type ClusterReq struct type ClusterRoute (line 200) | type ClusterRoute struct type ClusterResp (line 221) | type ClusterResp struct type ClusterPing (line 236) | type ClusterPing struct type Cluster (line 431) | type Cluster struct method TopicMaster (line 469) | func (c *Cluster) TopicMaster(msg *ClusterReq, rejected *bool) error { method TopicProxy (line 616) | func (Cluster) TopicProxy(msg *ClusterResp, unused *bool) error { method Route (line 635) | func (c *Cluster) Route(msg *ClusterRoute, rejected *bool) error { method UserCacheUpdate (line 669) | func (c *Cluster) UserCacheUpdate(msg *UserCacheReq, rejected *bool) e... method Ping (line 685) | func (c *Cluster) Ping(ping *ClusterPing, unused *bool) error { method routeUserReq (line 707) | func (c *Cluster) routeUserReq(req *UserCacheReq) error { method nodeForTopic (line 783) | func (c *Cluster) nodeForTopic(topic string) *ClusterNode { method isRemoteTopic (line 799) | func (c *Cluster) isRemoteTopic(topic string) bool { method genLocalTopicName (line 808) | func (c *Cluster) genLocalTopicName() string { method isPartitioned (line 824) | func (c *Cluster) isPartitioned() bool { method makeClusterReq (line 837) | func (c *Cluster) makeClusterReq(reqType ProxyReqType, msg *ClientComM... method routeToTopicMaster (line 876) | func (c *Cluster) routeToTopicMaster(reqType ProxyReqType, msg *Client... method routeToTopicIntraCluster (line 901) | func (c *Cluster) routeToTopicIntraCluster(topic string, msg *ServerCo... method topicProxyGone (line 926) | func (c *Cluster) topicProxyGone(topicName string) error { method start (line 1046) | func (c *Cluster) start() { method shutdown (line 1086) | func (c *Cluster) shutdown() { method rehash (line 1113) | func (c *Cluster) rehash(nodes []string) []string { method invalidateProxySubs (line 1138) | func (c *Cluster) invalidateProxySubs(forNode string) { method gcProxySessions (line 1170) | func (c *Cluster) gcProxySessions(activeNodes []string) { method gcProxySessionsForNode (line 1184) | func (c *Cluster) gcProxySessionsForNode(node string) { function clusterInit (line 944) | func clusterInit(configString json.RawMessage, self *string) int { method closeRPC (line 1039) | func (sess *Session) closeRPC() { method clusterWriteLoop (line 1199) | func (sess *Session) clusterWriteLoop(forTopic string) { FILE: server/cluster_leader.go type clusterFailover (line 19) | type clusterFailover struct type clusterFailoverConfig (line 43) | type clusterFailoverConfig struct type ClusterHealth (line 55) | type ClusterHealth struct type ClusterVoteRequest (line 67) | type ClusterVoteRequest struct type ClusterVoteResponse (line 75) | type ClusterVoteResponse struct type ClusterVote (line 83) | type ClusterVote struct method failoverInit (line 88) | func (c *Cluster) failoverInit(config *clusterFailoverConfig) bool { method Health (line 128) | func (c *Cluster) Health(health *ClusterHealth, unused *bool) error { method Vote (line 137) | func (c *Cluster) Vote(vreq *ClusterVoteRequest, response *ClusterVoteRe... method sendHealthChecks (line 151) | func (c *Cluster) sendHealthChecks() { method electLeader (line 198) | func (c *Cluster) electLeader() { method run (line 260) | func (c *Cluster) run() { FILE: server/concurrency/goroutinepool.go type Task (line 7) | type Task type GoRoutinePool (line 10) | type GoRoutinePool struct method Schedule (line 29) | func (p *GoRoutinePool) Schedule(task Task) { method Stop (line 38) | func (p *GoRoutinePool) Stop() { method worker (line 46) | func (p *GoRoutinePool) worker(task Task) { function NewGoRoutinePool (line 20) | func NewGoRoutinePool(numWorkers int) *GoRoutinePool { FILE: server/concurrency/simplemutex.go type SimpleMutex (line 4) | type SimpleMutex method Lock (line 12) | func (s SimpleMutex) Lock() { method TryLock (line 18) | func (s SimpleMutex) TryLock() bool { method Unlock (line 28) | func (s SimpleMutex) Unlock() { function NewSimpleMutex (line 7) | func NewSimpleMutex() SimpleMutex { FILE: server/datamodel.go type MsgGetOpts (line 22) | type MsgGetOpts struct type MsgGetQuery (line 40) | type MsgGetQuery struct type MsgSetSub (line 54) | type MsgSetSub struct type MsgSetDesc (line 63) | type MsgSetDesc struct type MsgCredClient (line 75) | type MsgCredClient struct type MsgSetQuery (line 87) | type MsgSetQuery struct type MsgRange (line 102) | type MsgRange struct type MsgClientHi (line 112) | type MsgClientHi struct type MsgClientAcc (line 130) | type MsgClientAcc struct type MsgClientLogin (line 158) | type MsgClientLogin struct type MsgClientSub (line 170) | type MsgClientSub struct constant constMsgMetaDesc (line 191) | constMsgMetaDesc = 1 << iota constant constMsgMetaSub (line 192) | constMsgMetaSub constant constMsgMetaData (line 193) | constMsgMetaData constant constMsgMetaTags (line 194) | constMsgMetaTags constant constMsgMetaDel (line 195) | constMsgMetaDel constant constMsgMetaCred (line 196) | constMsgMetaCred constant constMsgMetaAux (line 197) | constMsgMetaAux constant constMsgDelTopic (line 201) | constMsgDelTopic = iota + 1 constant constMsgDelMsg (line 202) | constMsgDelMsg constant constMsgDelSub (line 203) | constMsgDelSub constant constMsgDelUser (line 204) | constMsgDelUser constant constMsgDelCred (line 205) | constMsgDelCred function parseMsgClientMeta (line 208) | func parseMsgClientMeta(params string) int { function parseMsgClientDel (line 234) | func parseMsgClientDel(params string) int { type MsgDefaultAcsMode (line 253) | type MsgDefaultAcsMode struct type MsgClientLeave (line 259) | type MsgClientLeave struct type MsgClientPub (line 266) | type MsgClientPub struct type MsgClientGet (line 275) | type MsgClientGet struct type MsgClientSet (line 282) | type MsgClientSet struct type MsgClientDel (line 289) | type MsgClientDel struct type MsgClientNote (line 310) | type MsgClientNote struct type MsgClientExtra (line 326) | type MsgClientExtra struct type ClientComMessage (line 336) | type ClientComMessage struct type MsgLastSeenInfo (line 378) | type MsgLastSeenInfo struct method describe (line 385) | func (src *MsgLastSeenInfo) describe() string { type MsgCredServer (line 390) | type MsgCredServer struct type MsgAccessMode (line 400) | type MsgAccessMode struct method describe (line 409) | func (src *MsgAccessMode) describe() string { type MsgTopicDesc (line 424) | type MsgTopicDesc struct method describe (line 458) | func (src *MsgTopicDesc) describe() string { type MsgTopicSub (line 495) | type MsgTopicSub struct method describe (line 544) | func (src *MsgTopicSub) describe() string { type MsgDelValues (line 578) | type MsgDelValues struct type MsgServerCtrl (line 584) | type MsgServerCtrl struct method copy (line 595) | func (src *MsgServerCtrl) copy() *MsgServerCtrl { method describe (line 603) | func (src *MsgServerCtrl) describe() string { type MsgServerData (line 608) | type MsgServerData struct method copy (line 620) | func (src *MsgServerData) copy() *MsgServerData { method describe (line 628) | func (src *MsgServerData) describe() string { type MsgServerPres (line 642) | type MsgServerPres struct method copy (line 679) | func (src *MsgServerPres) copy() *MsgServerPres { method describe (line 687) | func (src *MsgServerPres) describe() string { type MsgServerMeta (line 721) | type MsgServerMeta struct method copy (line 742) | func (src *MsgServerMeta) copy() *MsgServerMeta { method describe (line 750) | func (src *MsgServerMeta) describe() string { type MsgServerInfo (line 782) | type MsgServerInfo struct method copy (line 806) | func (src *MsgServerInfo) copy() *MsgServerInfo { method describe (line 815) | func (src *MsgServerInfo) describe() string { type ServerComMessage (line 831) | type ServerComMessage struct method copy (line 860) | func (src *ServerComMessage) copy() *ServerComMessage { method describe (line 883) | func (src *ServerComMessage) describe() string { function NoErr (line 907) | func NoErr(id, topic string, ts time.Time) *ServerComMessage { function NoErrExplicitTs (line 912) | func NoErrExplicitTs(id, topic string, serverTs, incomingReqTs time.Time... function NoErrReply (line 917) | func NoErrReply(msg *ClientComMessage, ts time.Time) *ServerComMessage { function NoErrParams (line 922) | func NoErrParams(id, topic string, ts time.Time, params any) *ServerComM... function NoErrParamsExplicitTs (line 928) | func NoErrParamsExplicitTs(id, topic string, serverTs, incomingReqTs tim... function NoErrParamsReply (line 945) | func NoErrParamsReply(msg *ClientComMessage, ts time.Time, params any) *... function NoErrCreated (line 950) | func NoErrCreated(id, topic string, ts time.Time) *ServerComMessage { function NoErrAccepted (line 965) | func NoErrAccepted(id, topic string, ts time.Time) *ServerComMessage { function NoErrAcceptedExplicitTs (line 971) | func NoErrAcceptedExplicitTs(id, topic string, serverTs, incomingReqTs t... function NoContentParams (line 985) | func NoContentParams(id, topic string, serverTs, incomingReqTs time.Time... function NoContentParamsReply (line 1002) | func NoContentParamsReply(msg *ClientComMessage, ts time.Time, params an... function NoErrEvicted (line 1007) | func NoErrEvicted(id, topic string, ts time.Time) *ServerComMessage { function NoErrShutdown (line 1020) | func NoErrShutdown(ts time.Time) *ServerComMessage { function NoErrDeliveredParams (line 1031) | func NoErrDeliveredParams(id, topic string, ts time.Time, params any) *S... function InfoValidateCredentials (line 1048) | func InfoValidateCredentials(id string, ts time.Time) *ServerComMessage { function InfoValidateCredentialsExplicitTs (line 1054) | func InfoValidateCredentialsExplicitTs(id string, serverTs, incomingReqT... function InfoChallenge (line 1068) | func InfoChallenge(id string, ts time.Time, challenge []byte) *ServerCom... function InfoAuthReset (line 1084) | func InfoAuthReset(id string, ts time.Time) *ServerComMessage { function InfoUseOther (line 1098) | func InfoUseOther(id, topic, other string, serverTs, incomingReqTs time.... function InfoUseOtherReply (line 1114) | func InfoUseOtherReply(msg *ClientComMessage, other string, ts time.Time... function InfoAlreadySubscribed (line 1119) | func InfoAlreadySubscribed(id, topic string, ts time.Time) *ServerComMes... function InfoNotJoined (line 1133) | func InfoNotJoined(id, topic string, ts time.Time) *ServerComMessage { function InfoNoAction (line 1149) | func InfoNoAction(id, topic string, serverTs, incomingReqTs time.Time) *... function InfoNoActionReply (line 1165) | func InfoNoActionReply(msg *ClientComMessage, ts time.Time) *ServerComMe... function InfoNotModified (line 1170) | func InfoNotModified(id, topic string, ts time.Time) *ServerComMessage { function InfoNotModifiedReply (line 1176) | func InfoNotModifiedReply(msg *ClientComMessage, ts time.Time) *ServerCo... function InfoNotModifiedExplicitTs (line 1182) | func InfoNotModifiedExplicitTs(id, topic string, serverTs, incomingReqTs... function InfoFound (line 1197) | func InfoFound(id, topic string, ts time.Time) *ServerComMessage { function ErrMalformed (line 1214) | func ErrMalformed(id, topic string, ts time.Time) *ServerComMessage { function ErrMalformedReply (line 1220) | func ErrMalformedReply(msg *ClientComMessage, ts time.Time) *ServerComMe... function ErrMalformedExplicitTs (line 1225) | func ErrMalformedExplicitTs(id, topic string, serverTs, incomingReqTs ti... function ErrAuthRequired (line 1240) | func ErrAuthRequired(id, topic string, serverTs, incomingReqTs time.Time... function ErrAuthRequiredReply (line 1256) | func ErrAuthRequiredReply(msg *ClientComMessage, ts time.Time) *ServerCo... function ErrAuthFailed (line 1262) | func ErrAuthFailed(id, topic string, serverTs, incomingReqTs time.Time) ... function ErrAuthUnknownScheme (line 1277) | func ErrAuthUnknownScheme(id, topic string, ts time.Time) *ServerComMess... function ErrPermissionDenied (line 1292) | func ErrPermissionDenied(id, topic string, ts time.Time) *ServerComMessa... function ErrPermissionDeniedExplicitTs (line 1298) | func ErrPermissionDeniedExplicitTs(id, topic string, serverTs, incomingR... function ErrPermissionDeniedReply (line 1314) | func ErrPermissionDeniedReply(msg *ClientComMessage, ts time.Time) *Serv... function ErrAPIKeyRequired (line 1319) | func ErrAPIKeyRequired(ts time.Time) *ServerComMessage { function ErrSessionNotFound (line 1330) | func ErrSessionNotFound(ts time.Time) *ServerComMessage { function ErrTopicNotFound (line 1342) | func ErrTopicNotFound(id, topic string, serverTs, incomingReqTs time.Tim... function ErrTopicNotFoundReply (line 1359) | func ErrTopicNotFoundReply(msg *ClientComMessage, ts time.Time) *ServerC... function ErrUserNotFound (line 1365) | func ErrUserNotFound(id, topic string, serverTs, incomingReqTs time.Time... function ErrUserNotFoundReply (line 1381) | func ErrUserNotFoundReply(msg *ClientComMessage, ts time.Time) *ServerCo... function ErrNotFound (line 1386) | func ErrNotFound(id, topic string, ts time.Time) *ServerComMessage { function ErrNotFoundExplicitTs (line 1392) | func ErrNotFoundExplicitTs(id, topic string, serverTs, incomingReqTs tim... function ErrNotFoundReply (line 1408) | func ErrNotFoundReply(msg *ClientComMessage, ts time.Time) *ServerComMes... function ErrOperationNotAllowed (line 1413) | func ErrOperationNotAllowed(id, topic string, ts time.Time) *ServerComMe... function ErrOperationNotAllowedExplicitTs (line 1419) | func ErrOperationNotAllowedExplicitTs(id, topic string, serverTs, incomi... function ErrOperationNotAllowedReply (line 1435) | func ErrOperationNotAllowedReply(msg *ClientComMessage, ts time.Time) *S... function ErrInvalidResponse (line 1441) | func ErrInvalidResponse(id, topic string, serverTs, incomingReqTs time.T... function ErrDisconnected (line 1457) | func ErrDisconnected(id, topic string, ts time.Time) *ServerComMessage { function ErrAlreadyAuthenticated (line 1473) | func ErrAlreadyAuthenticated(id, topic string, ts time.Time) *ServerComM... function ErrDuplicateCredential (line 1489) | func ErrDuplicateCredential(id, topic string, serverTs, incomingReqTs ti... function ErrAttachFirst (line 1504) | func ErrAttachFirst(msg *ClientComMessage, ts time.Time) *ServerComMessa... function ErrAlreadyExists (line 1519) | func ErrAlreadyExists(id, topic string, ts time.Time) *ServerComMessage { function ErrCommandOutOfSequence (line 1534) | func ErrCommandOutOfSequence(id, unused string, ts time.Time) *ServerCom... function ErrGone (line 1548) | func ErrGone(id, topic string, ts time.Time) *ServerComMessage { function ErrTooLarge (line 1563) | func ErrTooLarge(id, topic string, ts time.Time) *ServerComMessage { function ErrPolicy (line 1578) | func ErrPolicy(id, topic string, ts time.Time) *ServerComMessage { function ErrPolicyExplicitTs (line 1584) | func ErrPolicyExplicitTs(id, topic string, serverTs, incomingReqTs time.... function ErrPolicyReply (line 1600) | func ErrPolicyReply(msg *ClientComMessage, ts time.Time) *ServerComMessa... function ErrCallBusyExplicitTs (line 1605) | func ErrCallBusyExplicitTs(id, topic string, serverTs, incomingReqTs tim... function ErrCallBusyReply (line 1620) | func ErrCallBusyReply(msg *ClientComMessage, ts time.Time) *ServerComMes... function ErrUnknown (line 1625) | func ErrUnknown(id, topic string, ts time.Time) *ServerComMessage { function ErrUnknownExplicitTs (line 1630) | func ErrUnknownExplicitTs(id, topic string, serverTs, incomingReqTs time... function ErrUnknownReply (line 1645) | func ErrUnknownReply(msg *ClientComMessage, ts time.Time) *ServerComMess... function ErrNotImplemented (line 1651) | func ErrNotImplemented(id, topic string, serverTs, incomingReqTs time.Ti... function ErrNotImplementedReply (line 1666) | func ErrNotImplementedReply(msg *ClientComMessage, ts time.Time) *Server... function ErrClusterUnreachableReply (line 1671) | func ErrClusterUnreachableReply(msg *ClientComMessage, ts time.Time) *Se... function ErrClusterUnreachableExplicitTs (line 1677) | func ErrClusterUnreachableExplicitTs(id, topic string, serverTs, incomin... function ErrServiceUnavailableReply (line 1692) | func ErrServiceUnavailableReply(msg *ClientComMessage, ts time.Time) *Se... function ErrServiceUnavailableExplicitTs (line 1698) | func ErrServiceUnavailableExplicitTs(id, topic string, serverTs, incomin... function ErrLocked (line 1713) | func ErrLocked(id, topic string, ts time.Time) *ServerComMessage { function ErrLockedReply (line 1719) | func ErrLockedReply(msg *ClientComMessage, ts time.Time) *ServerComMessa... function ErrLockedExplicitTs (line 1725) | func ErrLockedExplicitTs(id, topic string, serverTs, incomingReqTs time.... function ErrVersionNotSupported (line 1740) | func ErrVersionNotSupported(id string, ts time.Time) *ServerComMessage { FILE: server/db/adapter.go type Adapter (line 14) | type Adapter interface FILE: server/db/common/common.go type AuthRecord (line 16) | type AuthRecord struct function SelectEarliestUpdatedSubs (line 28) | func SelectEarliestUpdatedSubs(subs []t.Subscription, opts *t.QueryOpt, ... function SelectLatestTime (line 67) | func SelectLatestTime(t1, t2 time.Time) time.Time { function RangesToSql (line 77) | func RangesToSql(in []t.Range) (string, []any) { function DisjunctionSql (line 99) | func DisjunctionSql(req [][]string, fieldName string) (string, []any) { function FilterFoundTags (line 116) | func FilterFoundTags(setTags t.StringSlice, index map[string]struct{}) [... function ToJSON (line 127) | func ToJSON(src any) []byte { function FromJSON (line 137) | func FromJSON(src any) any { function UpdateByMap (line 150) | func UpdateByMap(update map[string]any) (cols []string, args []any) { function ExtractTags (line 163) | func ExtractTags(update map[string]any) []string { function EncodeUidString (line 175) | func EncodeUidString(str string) t.Uid { function DecodeUidString (line 182) | func DecodeUidString(str string) int64 { FILE: server/db/common/common_test.go function genTestData (line 13) | func genTestData() []types.Subscription { function TestSelectEarliestUpdatedSubs (line 42) | func TestSelectEarliestUpdatedSubs(t *testing.T) { function TestSelectLatestTime (line 101) | func TestSelectLatestTime(t *testing.T) { function TestRangesToSql (line 124) | func TestRangesToSql(t *testing.T) { function TestDisjunctionSql (line 162) | func TestDisjunctionSql(t *testing.T) { function TestFilterFoundTags (line 200) | func TestFilterFoundTags(t *testing.T) { function TestToJSON (line 232) | func TestToJSON(t *testing.T) { function TestFromJSON (line 260) | func TestFromJSON(t *testing.T) { function TestUpdateByMap (line 293) | func TestUpdateByMap(t *testing.T) { function TestExtractTags (line 348) | func TestExtractTags(t *testing.T) { FILE: server/db/common/test_data/test_data.go type TestData (line 11) | type TestData struct function initUsers (line 26) | func initUsers(now time.Time) []*types.User { function initCreds (line 61) | func initCreds(now time.Time, users []*types.User) []*types.Credential { function initAuthRecords (line 104) | func initAuthRecords(now time.Time, users []*types.User) []common.AuthRe... function initTopics (line 125) | func initTopics(now time.Time, users []*types.User) []*types.Topic { function initSubs (line 178) | func initSubs(now time.Time, users []*types.User, topics []*types.Topic)... function initMessages (line 258) | func initMessages(users []*types.User, topics []*types.Topic) []*types.M... function initDevices (line 307) | func initDevices(now time.Time) []*types.DeviceDef { function initFileDefs (line 324) | func initFileDefs(now time.Time, users []*types.User) []*types.FileDef { function initTags (line 352) | func initTags() [][]string { function InitTestData (line 360) | func InitTestData() *TestData { FILE: server/db/mongodb/adapter.go type adapter (line 28) | type adapter struct method maybeStartTransaction (line 81) | func (a *adapter) maybeStartTransaction(sess mdb.Session) error { method maybeCommitTransaction (line 88) | func (a *adapter) maybeCommitTransaction(ctx context.Context, sess mdb... method Open (line 96) | func (a *adapter) Open(jsonconfig json.RawMessage) error { method Close (line 217) | func (a *adapter) Close() error { method IsOpen (line 228) | func (a *adapter) IsOpen() bool { method GetDbVersion (line 233) | func (a *adapter) GetDbVersion() (int, error) { method updateDbVersion (line 253) | func (a *adapter) updateDbVersion(v int) error { method CheckDbVersion (line 263) | func (a *adapter) CheckDbVersion() error { method Version (line 278) | func (a *adapter) Version() int { method Stats (line 283) | func (a *adapter) Stats() any { method GetName (line 297) | func (a *adapter) GetName() string { method SetMaxResults (line 302) | func (a *adapter) SetMaxResults(val int) error { method CreateDb (line 313) | func (a *adapter) CreateDb(reset bool) error { method UpgradeDb (line 456) | func (a *adapter) UpgradeDb() error { method UserCreate (line 592) | func (a *adapter) UserCreate(usr *t.User) error { method UserGet (line 601) | func (a *adapter) UserGet(id t.Uid) (*t.User, error) { method UserGetAll (line 618) | func (a *adapter) UserGetAll(ids ...t.Uid) ([]t.User, error) { method UserDelete (line 647) | func (a *adapter) UserDelete(uid t.Uid, hard bool) error { method topicStateForUser (line 822) | func (a *adapter) topicStateForUser(uid t.Uid, now time.Time, update a... method UserUpdate (line 859) | func (a *adapter) UserUpdate(uid t.Uid, update map[string]any) error { method UserUpdateTags (line 879) | func (a *adapter) UserUpdateTags(uid t.Uid, add, remove, reset []strin... method UserGetByCred (line 906) | func (a *adapter) UserGetByCred(method, value string) (t.Uid, error) { method UserUnreadCount (line 926) | func (a *adapter) UserUnreadCount(ids ...t.Uid) (map[t.Uid]int, error) { method UserGetUnvalidated (line 1005) | func (a *adapter) UserGetUnvalidated(lastUpdatedBefore time.Time, limi... method CredUpsert (line 1099) | func (a *adapter) CredUpsert(cred *t.Credential) (bool, error) { method CredGetActive (line 1165) | func (a *adapter) CredGetActive(uid t.Uid, method string) (*t.Credenti... method CredGetAll (line 1185) | func (a *adapter) CredGetAll(uid t.Uid, method string, validatedOnly b... method credDel (line 1211) | func (a *adapter) credDel(ctx context.Context, uid t.Uid, method, valu... method CredDel (line 1250) | func (a *adapter) CredDel(uid t.Uid, method, value string) error { method CredConfirm (line 1255) | func (a *adapter) CredConfirm(uid t.Uid, method string) error { method CredFail (line 1272) | func (a *adapter) CredFail(uid t.Uid, method string) error { method AuthGetUniqueRecord (line 1289) | func (a *adapter) AuthGetUniqueRecord(unique string) (t.Uid, auth.Leve... method AuthGetRecord (line 1315) | func (a *adapter) AuthGetRecord(uid t.Uid, scheme string) (string, aut... method AuthAddRecord (line 1341) | func (a *adapter) AuthAddRecord(uid t.Uid, scheme, unique string, auth... method AuthDelScheme (line 1359) | func (a *adapter) AuthDelScheme(uid t.Uid, scheme string) error { method authDelAllRecords (line 1367) | func (a *adapter) authDelAllRecords(ctx context.Context, uid t.Uid) (i... method AuthDelAllRecords (line 1373) | func (a *adapter) AuthDelAllRecords(uid t.Uid) (int, error) { method AuthUpdRecord (line 1378) | func (a *adapter) AuthUpdRecord(uid t.Uid, scheme, unique string, method undeleteSubscription (line 1430) | func (a *adapter) undeleteSubscription(sub *t.Subscription) error { method TopicCreate (line 1447) | func (a *adapter) TopicCreate(topic *t.Topic) error { method TopicCreateP2P (line 1453) | func (a *adapter) TopicCreateP2P(initiator, invited *t.Subscription) e... method TopicGet (line 1488) | func (a *adapter) TopicGet(topic string) (*t.Topic, error) { method TopicsForUser (line 1522) | func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.Q... method UsersForTopic (line 1709) | func (a *adapter) UsersForTopic(topic string, keepDeleted bool, opts *... method topicNamesForUser (line 1830) | func (a *adapter) topicNamesForUser(collection string, filter b.M, fie... method p2pTopicsForUser (line 1856) | func (a *adapter) p2pTopicsForUser(uid t.Uid) ([]string, error) { method OwnTopics (line 1866) | func (a *adapter) OwnTopics(uid t.Uid) ([]string, error) { method ChannelsForUser (line 1873) | func (a *adapter) ChannelsForUser(uid t.Uid) ([]string, error) { method TopicShare (line 1885) | func (a *adapter) TopicShare(topic string, shares []*t.Subscription) e... method TopicDelete (line 1919) | func (a *adapter) TopicDelete(topic string, isChan, hard bool) error { method TopicUpdateOnMessage (line 1955) | func (a *adapter) TopicUpdateOnMessage(topic string, msg *t.Message) e... method subscriptionCount (line 1959) | func (a *adapter) subscriptionCount(topic string) (int64, error) { method TopicUpdateSubCnt (line 1968) | func (a *adapter) TopicUpdateSubCnt(topic string) error { method TopicUpdate (line 1979) | func (a *adapter) TopicUpdate(topic string, update map[string]any) err... method TopicOwnerChange (line 1987) | func (a *adapter) TopicOwnerChange(topic string, newOwner t.Uid) error { method topicUpdate (line 1991) | func (a *adapter) topicUpdate(topic string, update map[string]any) err... method SubscriptionGet (line 2002) | func (a *adapter) SubscriptionGet(topic string, user t.Uid, keepDelete... method SubsForUser (line 2021) | func (a *adapter) SubsForUser(user t.Uid) ([]t.Subscription, error) { method SubsForTopic (line 2046) | func (a *adapter) SubsForTopic(topic string, keepDeleted bool, opts *t... method SubsUpdate (line 2086) | func (a *adapter) SubsUpdate(topic string, user t.Uid, update map[stri... method SubsDelete (line 2103) | func (a *adapter) SubsDelete(topic string, user t.Uid) error { method clearUserDellog (line 2152) | func (a *adapter) clearUserDellog(sc mdb.SessionContext, forUser strin... method subsDelete (line 2181) | func (a *adapter) subsDelete(ctx context.Context, filter b.M, hard boo... method Find (line 2231) | func (a *adapter) Find(caller, prefPrefix string, req [][]string, opt ... method FindOne (line 2431) | func (a *adapter) FindOne(tag string) (string, error) { method MessageSave (line 2467) | func (a *adapter) MessageSave(msg *t.Message) error { method MessageGetAll (line 2473) | func (a *adapter) MessageGetAll(topic string, forUser t.Uid, opts *t.Q... method messagesHardDelete (line 2521) | func (a *adapter) messagesHardDelete(topic string) error { method MessageDeleteList (line 2561) | func (a *adapter) MessageDeleteList(topic string, toDel *t.DelMessage)... method MessageGetDeleted (line 2659) | func (a *adapter) MessageGetDeleted(topic string, forUser t.Uid, opts ... method DeviceUpsert (line 2705) | func (a *adapter) DeviceUpsert(uid t.Uid, dev *t.DeviceDef) error { method deviceInsert (line 2748) | func (a *adapter) deviceInsert(userId string, dev *t.DeviceDef) error { method DeviceGetAll (line 2763) | func (a *adapter) DeviceGetAll(uids ...t.Uid) (map[t.Uid][]t.DeviceDef... method DeviceDelete (line 2801) | func (a *adapter) DeviceDelete(uid t.Uid, deviceID string) error { method FileStartUpload (line 2817) | func (a *adapter) FileStartUpload(fd *t.FileDef) error { method FileFinishUpload (line 2823) | func (a *adapter) FileFinishUpload(fd *t.FileDef, success bool, size i... method FileGet (line 2856) | func (a *adapter) FileGet(fid string) (*t.FileDef, error) { method FileDeleteUnused (line 2872) | func (a *adapter) FileDeleteUnused(olderThan time.Time, limit int) ([]... method decFileUseCounter (line 2905) | func (a *adapter) decFileUseCounter(ctx context.Context, collection st... method FileLinkAttachments (line 2927) | func (a *adapter) FileLinkAttachments(topic string, userId, msgId t.Ui... method PCacheGet (line 3002) | func (a *adapter) PCacheGet(key string) (string, error) { method PCacheUpsert (line 3015) | func (a *adapter) PCacheUpsert(key string, value string, failOnDuplica... method PCacheDelete (line 3042) | func (a *adapter) PCacheDelete(key string) error { method PCacheExpire (line 3048) | func (a *adapter) PCacheExpire(keyPrefix string, olderThan time.Time) ... method GetTestDB (line 3059) | func (a *adapter) GetTestDB() any { method isDbInitialized (line 3063) | func (a *adapter) isDbInitialized() bool { constant adpVersion (line 42) | adpVersion = 116 constant adapterName (line 43) | adapterName = "mongodb" constant defaultHost (line 45) | defaultHost = "localhost:27017" constant defaultDatabase (line 46) | defaultDatabase = "tinode" constant defaultMaxResults (line 48) | defaultMaxResults = 1024 constant defaultMaxMessageResults (line 50) | defaultMaxMessageResults = 100 constant defaultAuthMechanism (line 52) | defaultAuthMechanism = "SCRAM-SHA-256" constant defaultAuthSource (line 53) | defaultAuthSource = "admin" type configType (line 57) | type configType struct function createSystemTopic (line 575) | func createSystemTopic(a *adapter) error { function rangeToFilter (line 2542) | func rangeToFilter(delRanges []t.Range, filter b.M) b.M { function GetTestAdapter (line 3074) | func GetTestAdapter() *adapter { function init (line 3078) | func init() { function contains (line 3082) | func contains(s []string, e string) bool { function union (line 3091) | func union(userTags, addTags []string) []string { function diff (line 3100) | func diff(userTags, removeTags []string) []string { function normalizeUpdateMap (line 3111) | func normalizeUpdateMap(update map[string]any) map[string]any { function unmarshalBsonD (line 3123) | func unmarshalBsonD(bsonObj any) any { function copyBsonMap (line 3145) | func copyBsonMap(mp b.M) b.M { function isDuplicateErr (line 3152) | func isDuplicateErr(err error) bool { FILE: server/db/mongodb/tests/mongo_test.go type configType (line 37) | type configType struct function TestCreateDb (line 50) | func TestCreateDb(t *testing.T) { function TestUserCreate (line 57) | func TestUserCreate(t *testing.T) { function TestCredUpsert (line 72) | func TestCredUpsert(t *testing.T) { function TestAuthAddRecord (line 119) | func TestAuthAddRecord(t *testing.T) { function TestTopicCreate (line 135) | func TestTopicCreate(t *testing.T) { function TestTopicCreateP2P (line 148) | func TestTopicCreateP2P(t *testing.T) { function TestTopicShare (line 170) | func TestTopicShare(t *testing.T) { function TestMessageSave (line 176) | func TestMessageSave(t *testing.T) { function TestFileStartUpload (line 200) | func TestFileStartUpload(t *testing.T) { function TestUserGet (line 210) | func TestUserGet(t *testing.T) { function TestUserGetAll (line 226) | func TestUserGetAll(t *testing.T) { function TestUserGetByCred (line 250) | func TestUserGetByCred(t *testing.T) { function TestCredGetActive (line 266) | func TestCredGetActive(t *testing.T) { function TestCredGetAll (line 285) | func TestCredGetAll(t *testing.T) { function TestAuthGetUniqueRecord (line 310) | func TestAuthGetUniqueRecord(t *testing.T) { function TestAuthGetRecord (line 333) | func TestAuthGetRecord(t *testing.T) { function TestTopicGet (line 356) | func TestTopicGet(t *testing.T) { function TestTopicsForUser (line 374) | func TestTopicsForUser(t *testing.T) { function TestUsersForTopic (line 418) | func TestUsersForTopic(t *testing.T) { function TestOwnTopics (line 448) | func TestOwnTopics(t *testing.T) { function TestSubscriptionGet (line 461) | func TestSubscriptionGet(t *testing.T) { function TestSubsForUser (line 480) | func TestSubsForUser(t *testing.T) { function TestSubsForTopic (line 499) | func TestSubsForTopic(t *testing.T) { function TestFind (line 521) | func TestFind(t *testing.T) { function TestMessageGetAll (line 532) | func TestMessageGetAll(t *testing.T) { function TestFileGet (line 556) | func TestFileGet(t *testing.T) { function TestUserUpdate (line 569) | func TestUserUpdate(t *testing.T) { function TestUserUpdateTags (line 592) | func TestUserUpdateTags(t *testing.T) { function TestCredFail (line 630) | func TestCredFail(t *testing.T) { function TestCredConfirm (line 650) | func TestCredConfirm(t *testing.T) { function TestAuthUpdRecord (line 675) | func TestAuthUpdRecord(t *testing.T) { function TestTopicUpdateOnMessage (line 712) | func TestTopicUpdateOnMessage(t *testing.T) { function TestTopicUpdate (line 734) | func TestTopicUpdate(t *testing.T) { function TestTopicOwnerChange (line 749) | func TestTopicOwnerChange(t *testing.T) { function TestSubsUpdate (line 761) | func TestSubsUpdate(t *testing.T) { function TestSubsDelete (line 785) | func TestSubsDelete(t *testing.T) { function TestDeviceUpsert (line 797) | func TestDeviceUpsert(t *testing.T) { function TestMessageAttachments (line 842) | func TestMessageAttachments(t *testing.T) { function TestFileFinishUpload (line 868) | func TestFileFinishUpload(t *testing.T) { function TestDeviceGetAll (line 882) | func TestDeviceGetAll(t *testing.T) { function TestDeviceDelete (line 901) | func TestDeviceDelete(t *testing.T) { function TestPCacheUpsert (line 929) | func TestPCacheUpsert(t *testing.T) { function TestPCacheGet (line 947) | func TestPCacheGet(t *testing.T) { function TestPCacheDelete (line 963) | func TestPCacheDelete(t *testing.T) { function TestPCacheExpire (line 976) | func TestPCacheExpire(t *testing.T) { function TestCredDel (line 989) | func TestCredDel(t *testing.T) { function TestAuthDelScheme (line 1022) | func TestAuthDelScheme(t *testing.T) { function TestAuthDelAllRecords (line 1026) | func TestAuthDelAllRecords(t *testing.T) { function TestSubsDelForUser (line 1042) | func TestSubsDelForUser(t *testing.T) { function TestMessageDeleteList (line 1046) | func TestMessageDeleteList(t *testing.T) { function TestTopicDelete (line 1126) | func TestTopicDelete(t *testing.T) { function TestFileDeleteUnused (line 1163) | func TestFileDeleteUnused(t *testing.T) { function TestUserDelete (line 1175) | func TestUserDelete(t *testing.T) { function TestUserUnreadCount (line 1199) | func TestUserUnreadCount(t *testing.T) { function TestMessageGetDeleted (line 1234) | func TestMessageGetDeleted(t *testing.T) { function mismatchErrorString (line 1250) | func mismatchErrorString(key string, got, want any) string { function init (line 1254) | func init() { FILE: server/db/mysql/adapter.go type adapter (line 27) | type adapter struct method getContext (line 81) | func (a *adapter) getContext() (context.Context, context.CancelFunc) { method getContextForTx (line 88) | func (a *adapter) getContextForTx() (context.Context, context.CancelFu... method Open (line 96) | func (a *adapter) Open(jsonconfig json.RawMessage) error { method Close (line 182) | func (a *adapter) Close() error { method IsOpen (line 194) | func (a *adapter) IsOpen() bool { method GetDbVersion (line 199) | func (a *adapter) GetDbVersion() (int, error) { method updateDbVersion (line 222) | func (a *adapter) updateDbVersion(v int) error { method CheckDbVersion (line 235) | func (a *adapter) CheckDbVersion() error { method Version (line 250) | func (adapter) Version() int { method Stats (line 255) | func (a *adapter) Stats() any { method GetName (line 263) | func (a *adapter) GetName() string { method SetMaxResults (line 268) | func (a *adapter) SetMaxResults(val int) error { method CreateDb (line 279) | func (a *adapter) CreateDb(reset bool) error { method UpgradeDb (line 579) | func (a *adapter) UpgradeDb() error { method UserCreate (line 887) | func (a *adapter) UserCreate(user *t.User) error { method AuthAddRecord (line 925) | func (a *adapter) AuthAddRecord(uid t.Uid, scheme, unique string, auth... method AuthDelScheme (line 948) | func (a *adapter) AuthDelScheme(user t.Uid, scheme string) error { method AuthDelAllRecords (line 958) | func (a *adapter) AuthDelAllRecords(user t.Uid) (int, error) { method AuthUpdRecord (line 973) | func (a *adapter) AuthUpdRecord(uid t.Uid, scheme, unique string, auth... method AuthGetRecord (line 1011) | func (a *adapter) AuthGetRecord(uid t.Uid, scheme string) (string, aut... method AuthGetUniqueRecord (line 1042) | func (a *adapter) AuthGetUniqueRecord(unique string) (t.Uid, auth.Leve... method UserGet (line 1072) | func (a *adapter) UserGet(uid t.Uid) (*t.User, error) { method UserGetAll (line 1094) | func (a *adapter) UserGetAll(ids ...t.Uid) ([]t.User, error) { method UserDelete (line 1136) | func (a *adapter) UserDelete(uid t.Uid, hard bool) error { method topicStateForUser (line 1286) | func (a *adapter) topicStateForUser(tx *sqlx.Tx, decoded_uid int64, no... method UserUpdate (line 1317) | func (a *adapter) UserUpdate(uid t.Uid, update map[string]any) error { method UserUpdateTags (line 1367) | func (a *adapter) UserUpdateTags(uid t.Uid, add, remove, reset []strin... method UserGetByCred (line 1422) | func (a *adapter) UserGetByCred(method, value string) (t.Uid, error) { method UserUnreadCount (line 1444) | func (a *adapter) UserUnreadCount(ids ...t.Uid) (map[t.Uid]int, error) { method UserGetUnvalidated (line 1485) | func (a *adapter) UserGetUnvalidated(lastUpdatedBefore time.Time, limi... method topicCreate (line 1517) | func (a *adapter) topicCreate(tx *sqlx.Tx, topic *t.Topic) error { method TopicCreate (line 1532) | func (a *adapter) TopicCreate(topic *t.Topic) error { method TopicCreateP2P (line 1588) | func (a *adapter) TopicCreateP2P(initiator, invited *t.Subscription) e... method TopicGet (line 1626) | func (a *adapter) TopicGet(topic string) (*t.Topic, error) { method TopicsForUser (line 1670) | func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.Q... method UsersForTopic (line 1893) | func (a *adapter) UsersForTopic(topic string, keepDeleted bool, opts *... method topicNamesForUser (line 2012) | func (a *adapter) topicNamesForUser(sqlQuery string, includeChan bool,... method OwnTopics (line 2045) | func (a *adapter) OwnTopics(uid t.Uid) ([]string, error) { method ChannelsForUser (line 2051) | func (a *adapter) ChannelsForUser(uid t.Uid) ([]string, error) { method TopicShare (line 2058) | func (a *adapter) TopicShare(topic string, shares []*t.Subscription) e... method TopicDelete (line 2091) | func (a *adapter) TopicDelete(topic string, isChan, hard bool) error { method TopicUpdateOnMessage (line 2148) | func (a *adapter) TopicUpdateOnMessage(topic string, msg *t.Message) e... method TopicUpdateSubCnt (line 2159) | func (a *adapter) TopicUpdateSubCnt(topic string) error { method TopicUpdate (line 2172) | func (a *adapter) TopicUpdate(topic string, update map[string]any) err... method TopicOwnerChange (line 2215) | func (a *adapter) TopicOwnerChange(topic string, newOwner t.Uid) error { method SubscriptionGet (line 2225) | func (a *adapter) SubscriptionGet(topic string, user t.Uid, keepDelete... method SubsForUser (line 2253) | func (a *adapter) SubsForUser(forUser t.Uid) ([]t.Subscription, error) { method SubsForTopic (line 2287) | func (a *adapter) SubsForTopic(topic string, keepDeleted bool, opts *t... method SubsUpdate (line 2342) | func (a *adapter) SubsUpdate(topic string, user t.Uid, update map[stri... method SubsDelete (line 2375) | func (a *adapter) SubsDelete(topic string, user t.Uid) error { method SubsDelForUser (line 2475) | func (a *adapter) SubsDelForUser(user t.Uid, hard bool) error { method Find (line 2500) | func (a *adapter) Find(caller, promoPrefix string, req [][]string, opt... method FindOne (line 2614) | func (a *adapter) FindOne(tag string) (string, error) { method MessageSave (line 2661) | func (a *adapter) MessageSave(msg *t.Message) error { method MessageGetAll (line 2681) | func (a *adapter) MessageGetAll(topic string, forUser t.Uid, opts *t.Q... method MessageGetDeleted (line 2750) | func (a *adapter) MessageGetDeleted(topic string, forUser t.Uid, opts ... method MessageDeleteList (line 2926) | func (a *adapter) MessageDeleteList(topic string, toDel *t.DelMessage)... method DeviceUpsert (line 2960) | func (a *adapter) DeviceUpsert(uid t.Uid, def *t.DeviceDef) error { method DeviceGetAll (line 2994) | func (a *adapter) DeviceGetAll(uids ...t.Uid) (map[t.Uid][]t.DeviceDef... method DeviceDelete (line 3062) | func (a *adapter) DeviceDelete(uid t.Uid, deviceID string) error { method CredUpsert (line 3096) | func (a *adapter) CredUpsert(cred *t.Credential) (bool, error) { method CredDel (line 3228) | func (a *adapter) CredDel(uid t.Uid, method, value string) error { method CredConfirm (line 3252) | func (a *adapter) CredConfirm(uid t.Uid, method string) error { method CredFail (line 3275) | func (a *adapter) CredFail(uid t.Uid, method string) error { method CredGetActive (line 3286) | func (a *adapter) CredGetActive(uid t.Uid, method string) (*t.Credenti... method CredGetAll (line 3307) | func (a *adapter) CredGetAll(uid t.Uid, method string, validatedOnly b... method FileStartUpload (line 3339) | func (a *adapter) FileStartUpload(fd *t.FileDef) error { method FileFinishUpload (line 3359) | func (a *adapter) FileFinishUpload(fd *t.FileDef, success bool, size i... method FileGet (line 3400) | func (a *adapter) FileGet(fid string) (*t.FileDef, error) { method FileDeleteUnused (line 3429) | func (a *adapter) FileDeleteUnused(olderThan time.Time, limit int) ([]... method FileLinkAttachments (line 3496) | func (a *adapter) FileLinkAttachments(topic string, userId, msgId t.Ui... method PCacheGet (line 3568) | func (a *adapter) PCacheGet(key string) (string, error) { method PCacheUpsert (line 3585) | func (a *adapter) PCacheUpsert(key string, value string, failOnDuplica... method PCacheDelete (line 3611) | func (a *adapter) PCacheDelete(key string) error { method PCacheExpire (line 3622) | func (a *adapter) PCacheExpire(keyPrefix string, olderThan time.Time) ... method GetTestDB (line 3637) | func (a *adapter) GetTestDB() any { constant adpVersion (line 44) | adpVersion = 116 constant adapterName (line 45) | adapterName = "mysql" constant defaultDSN (line 47) | defaultDSN = "root:@tcp(localhost:3306)/tinode?parseTime=true" constant defaultDatabase (line 48) | defaultDatabase = "tinode" constant defaultMaxResults (line 50) | defaultMaxResults = 1024 constant defaultMaxMessageResults (line 52) | defaultMaxMessageResults = 100 constant txTimeoutMultiplier (line 56) | txTimeoutMultiplier = 1.5 type configType (line 59) | type configType struct function createSystemTopic (line 836) | func createSystemTopic(tx *sql.Tx) error { function addTags (line 844) | func addTags(tx *sqlx.Tx, table, keyName string, keyVal any, tags []stri... function removeTags (line 869) | func removeTags(tx *sqlx.Tx, table, keyName string, keyVal any, tags []s... function createSubscription (line 1555) | func createSubscription(tx *sqlx.Tx, sub *t.Subscription, undelete bool)... function subsDelForUser (line 2431) | func subsDelForUser(tx *sqlx.Tx, decoded_uid int64, hard bool) error { function messageDeleteList (line 2828) | func messageDeleteList(tx *sqlx.Tx, topic string, toDel *t.DelMessage) e... function deviceHasher (line 2949) | func deviceHasher(deviceID string) string { function deviceDelete (line 3043) | func deviceDelete(tx *sqlx.Tx, uid t.Uid, deviceID string) error { function credDel (line 3177) | func credDel(tx *sqlx.Tx, uid t.Uid, method, value string) error { function isDupe (line 3644) | func isDupe(err error) bool { function isMissingTable (line 3653) | func isMissingTable(err error) bool { function isMissingDb (line 3662) | func isMissingDb(err error) bool { function GetTestAdapter (line 3672) | func GetTestAdapter() *adapter { function init (line 3676) | func init() { FILE: server/db/mysql/schema.sql type kvmeta (line 18) | CREATE TABLE kvmeta( type users (line 28) | CREATE TABLE users( type usertags (line 46) | CREATE TABLE usertags( type devices (line 58) | CREATE TABLE devices( type auth (line 73) | CREATE TABLE auth( type topics (line 90) | CREATE TABLE topics( type messages (line 152) | CREATE TABLE messages( type dellog (line 170) | CREATE TABLE dellog( type fileuploads (line 208) | CREATE TABLE fileuploads( type filemsglinks (line 224) | CREATE TABLE filemsglinks( FILE: server/db/mysql/tests/mysql_test.go type configType (line 35) | type configType struct function TestCreateDb (line 50) | func TestCreateDb(t *testing.T) { function TestUserCreate (line 59) | func TestUserCreate(t *testing.T) { function TestCredUpsert (line 79) | func TestCredUpsert(t *testing.T) { function TestAuthAddRecord (line 126) | func TestAuthAddRecord(t *testing.T) { function TestTopicCreate (line 142) | func TestTopicCreate(t *testing.T) { function decodeUid (line 155) | func decodeUid(u string) int64 { function TestTopicCreateP2P (line 159) | func TestTopicCreateP2P(t *testing.T) { function TestTopicShare (line 184) | func TestTopicShare(t *testing.T) { function TestMessageSave (line 211) | func TestMessageSave(t *testing.T) { function TestFileStartUpload (line 235) | func TestFileStartUpload(t *testing.T) { function TestUserGet (line 245) | func TestUserGet(t *testing.T) { function TestUserGetAll (line 267) | func TestUserGetAll(t *testing.T) { function TestUserGetByCred (line 295) | func TestUserGetByCred(t *testing.T) { function TestCredGetActive (line 311) | func TestCredGetActive(t *testing.T) { function TestCredGetAll (line 330) | func TestCredGetAll(t *testing.T) { function TestAuthGetUniqueRecord (line 355) | func TestAuthGetUniqueRecord(t *testing.T) { function TestAuthGetRecord (line 377) | func TestAuthGetRecord(t *testing.T) { function TestTopicGet (line 399) | func TestTopicGet(t *testing.T) { function TestTopicsForUser (line 417) | func TestTopicsForUser(t *testing.T) { function TestUsersForTopic (line 459) | func TestUsersForTopic(t *testing.T) { function TestOwnTopics (line 489) | func TestOwnTopics(t *testing.T) { function TestSubscriptionGet (line 502) | func TestSubscriptionGet(t *testing.T) { function TestSubsForUser (line 522) | func TestSubsForUser(t *testing.T) { function TestSubsForTopic (line 541) | func TestSubsForTopic(t *testing.T) { function TestFind (line 563) | func TestFind(t *testing.T) { function TestMessageGetAll (line 574) | func TestMessageGetAll(t *testing.T) { function TestFileGet (line 598) | func TestFileGet(t *testing.T) { function TestUserUpdate (line 611) | func TestUserUpdate(t *testing.T) { function TestUserUpdateTags (line 639) | func TestUserUpdateTags(t *testing.T) { function TestCredFail (line 691) | func TestCredFail(t *testing.T) { function TestCredConfirm (line 716) | func TestCredConfirm(t *testing.T) { function TestAuthUpdRecord (line 741) | func TestAuthUpdRecord(t *testing.T) { function TestTopicUpdateOnMessage (line 776) | func TestTopicUpdateOnMessage(t *testing.T) { function TestTopicUpdate (line 802) | func TestTopicUpdate(t *testing.T) { function TestTopicOwnerChange (line 820) | func TestTopicOwnerChange(t *testing.T) { function TestSubsUpdate (line 836) | func TestSubsUpdate(t *testing.T) { function TestSubsDelete (line 868) | func TestSubsDelete(t *testing.T) { function TestDeviceUpsert (line 884) | func TestDeviceUpsert(t *testing.T) { function TestFileFinishUpload (line 937) | func TestFileFinishUpload(t *testing.T) { function TestMessageAttachments (line 950) | func TestMessageAttachments(t *testing.T) { function TestDeviceGetAll (line 969) | func TestDeviceGetAll(t *testing.T) { function TestDeviceDelete (line 988) | func TestDeviceDelete(t *testing.T) { function TestPCacheUpsert (line 1016) | func TestPCacheUpsert(t *testing.T) { function TestPCacheGet (line 1034) | func TestPCacheGet(t *testing.T) { function TestPCacheDelete (line 1050) | func TestPCacheDelete(t *testing.T) { function TestPCacheExpire (line 1063) | func TestPCacheExpire(t *testing.T) { function TestCredDel (line 1076) | func TestCredDel(t *testing.T) { function TestAuthDelScheme (line 1103) | func TestAuthDelScheme(t *testing.T) { function TestAuthDelAllRecords (line 1107) | func TestAuthDelAllRecords(t *testing.T) { function TestSubsDelForUser (line 1123) | func TestSubsDelForUser(t *testing.T) { function TestMessageDeleteList (line 1127) | func TestMessageDeleteList(t *testing.T) { function TestTopicDelete (line 1194) | func TestTopicDelete(t *testing.T) { function TestFileDeleteUnused (line 1223) | func TestFileDeleteUnused(t *testing.T) { function TestUserDelete (line 1233) | func TestUserDelete(t *testing.T) { function TestUserUnreadCount (line 1264) | func TestUserUnreadCount(t *testing.T) { function TestMessageGetDeleted (line 1297) | func TestMessageGetDeleted(t *testing.T) { function mismatchErrorString (line 1313) | func mismatchErrorString(key string, got, want any) string { function init (line 1317) | func init() { FILE: server/db/postgres/adapter.go type adapter (line 32) | type adapter struct method getContext (line 97) | func (a *adapter) getContext() (context.Context, context.CancelFunc) { method getContextForTx (line 104) | func (a *adapter) getContextForTx() (context.Context, context.CancelFu... method Open (line 112) | func (a *adapter) Open(jsonconfig json.RawMessage) error { method Close (line 191) | func (a *adapter) Close() error { method IsOpen (line 202) | func (a *adapter) IsOpen() bool { method GetDbVersion (line 207) | func (a *adapter) GetDbVersion() (int, error) { method updateDbVersion (line 230) | func (a *adapter) updateDbVersion(v int) error { method CheckDbVersion (line 243) | func (a *adapter) CheckDbVersion() error { method Version (line 258) | func (adapter) Version() int { method Stats (line 263) | func (a *adapter) Stats() any { method GetName (line 271) | func (a *adapter) GetName() string { method SetMaxResults (line 276) | func (a *adapter) SetMaxResults(val int) error { method CreateDb (line 287) | func (a *adapter) CreateDb(reset bool) error { method UpgradeDb (line 595) | func (a *adapter) UpgradeDb() error { method UserCreate (line 742) | func (a *adapter) UserCreate(user *t.User) error { method AuthAddRecord (line 781) | func (a *adapter) AuthAddRecord(uid t.Uid, scheme, unique string, auth... method AuthDelScheme (line 804) | func (a *adapter) AuthDelScheme(user t.Uid, scheme string) error { method AuthDelAllRecords (line 814) | func (a *adapter) AuthDelAllRecords(user t.Uid) (int, error) { method AuthUpdRecord (line 830) | func (a *adapter) AuthUpdRecord(uid t.Uid, scheme, unique string, auth... method AuthGetRecord (line 867) | func (a *adapter) AuthGetRecord(uid t.Uid, scheme string) (string, aut... method AuthGetUniqueRecord (line 899) | func (a *adapter) AuthGetUniqueRecord(unique string) (t.Uid, auth.Leve... method UserGet (line 930) | func (a *adapter) UserGet(uid t.Uid) (*t.User, error) { method UserGetAll (line 958) | func (a *adapter) UserGetAll(ids ...t.Uid) ([]t.User, error) { method UserDelete (line 996) | func (a *adapter) UserDelete(uid t.Uid, hard bool) error { method topicStateForUser (line 1146) | func (a *adapter) topicStateForUser(ctx context.Context, tx pgx.Tx, de... method UserUpdate (line 1179) | func (a *adapter) UserUpdate(uid t.Uid, update map[string]any) error { method UserUpdateTags (line 1246) | func (a *adapter) UserUpdateTags(uid t.Uid, add, remove, reset []strin... method UserGetByCred (line 1308) | func (a *adapter) UserGetByCred(method, value string) (t.Uid, error) { method UserUnreadCount (line 1330) | func (a *adapter) UserUnreadCount(ids ...t.Uid) (map[t.Uid]int, error) { method UserGetUnvalidated (line 1371) | func (a *adapter) UserGetUnvalidated(lastUpdatedBefore time.Time, limi... method topicCreate (line 1407) | func (a *adapter) topicCreate(ctx context.Context, tx pgx.Tx, topic *t... method TopicCreate (line 1422) | func (a *adapter) TopicCreate(topic *t.Topic) error { method TopicCreateP2P (line 1488) | func (a *adapter) TopicCreateP2P(initiator, invited *t.Subscription) e... method TopicGet (line 1525) | func (a *adapter) TopicGet(topic string) (*t.Topic, error) { method TopicsForUser (line 1572) | func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.Q... method UsersForTopic (line 1809) | func (a *adapter) UsersForTopic(topic string, keepDeleted bool, opts *... method topicNamesForUser (line 1931) | func (a *adapter) topicNamesForUser(sqlQuery string, includeChan bool,... method OwnTopics (line 1964) | func (a *adapter) OwnTopics(uid t.Uid) ([]string, error) { method ChannelsForUser (line 1970) | func (a *adapter) ChannelsForUser(uid t.Uid) ([]string, error) { method TopicShare (line 1977) | func (a *adapter) TopicShare(topic string, shares []*t.Subscription) e... method TopicDelete (line 2009) | func (a *adapter) TopicDelete(topic string, isChan, hard bool) error { method TopicUpdateOnMessage (line 2065) | func (a *adapter) TopicUpdateOnMessage(topic string, msg *t.Message) e... method TopicUpdateSubCnt (line 2076) | func (a *adapter) TopicUpdateSubCnt(topic string) error { method TopicUpdate (line 2087) | func (a *adapter) TopicUpdate(topic string, update map[string]any) err... method TopicOwnerChange (line 2130) | func (a *adapter) TopicOwnerChange(topic string, newOwner t.Uid) error { method SubscriptionGet (line 2140) | func (a *adapter) SubscriptionGet(topic string, user t.Uid, keepDelete... method SubsForUser (line 2173) | func (a *adapter) SubsForUser(forUser t.Uid) ([]t.Subscription, error) { method SubsForTopic (line 2213) | func (a *adapter) SubsForTopic(topic string, keepDeleted bool, opts *t... method SubsUpdate (line 2273) | func (a *adapter) SubsUpdate(topic string, user t.Uid, update map[stri... method SubsDelete (line 2307) | func (a *adapter) SubsDelete(topic string, user t.Uid) error { method SubsDelForUser (line 2406) | func (a *adapter) SubsDelForUser(user t.Uid, hard bool) error { method Find (line 2432) | func (a *adapter) Find(caller, promoPrefix string, req [][]string, opt... method FindOne (line 2553) | func (a *adapter) FindOne(tag string) (string, error) { method MessageSave (line 2600) | func (a *adapter) MessageSave(msg *t.Message) error { method MessageGetAll (line 2619) | func (a *adapter) MessageGetAll(topic string, forUser t.Uid, opts *t.Q... method MessageGetDeleted (line 2687) | func (a *adapter) MessageGetDeleted(topic string, forUser t.Uid, opts ... method MessageDeleteList (line 2874) | func (a *adapter) MessageDeleteList(topic string, toDel *t.DelMessage)... method DeviceUpsert (line 2906) | func (a *adapter) DeviceUpsert(uid t.Uid, def *t.DeviceDef) error { method DeviceGetAll (line 2939) | func (a *adapter) DeviceGetAll(uids ...t.Uid) (map[t.Uid][]t.DeviceDef... method DeviceDelete (line 3006) | func (a *adapter) DeviceDelete(uid t.Uid, deviceID string) error { method CredUpsert (line 3040) | func (a *adapter) CredUpsert(cred *t.Credential) (bool, error) { method CredDel (line 3173) | func (a *adapter) CredDel(uid t.Uid, method, value string) error { method CredConfirm (line 3197) | func (a *adapter) CredConfirm(uid t.Uid, method string) error { method CredFail (line 3220) | func (a *adapter) CredFail(uid t.Uid, method string) error { method CredGetActive (line 3231) | func (a *adapter) CredGetActive(uid t.Uid, method string) (*t.Credenti... method CredGetAll (line 3253) | func (a *adapter) CredGetAll(uid t.Uid, method string, validatedOnly b... method FileStartUpload (line 3296) | func (a *adapter) FileStartUpload(fd *t.FileDef) error { method FileFinishUpload (line 3314) | func (a *adapter) FileFinishUpload(fd *t.FileDef, success bool, size i... method FileGet (line 3355) | func (a *adapter) FileGet(fid string) (*t.FileDef, error) { method FileDeleteUnused (line 3385) | func (a *adapter) FileDeleteUnused(olderThan time.Time, limit int) ([]... method FileLinkAttachments (line 3453) | func (a *adapter) FileLinkAttachments(topic string, userId, msgId t.Ui... method PCacheGet (line 3526) | func (a *adapter) PCacheGet(key string) (string, error) { method PCacheUpsert (line 3543) | func (a *adapter) PCacheUpsert(key string, value string, failOnDuplica... method PCacheDelete (line 3568) | func (a *adapter) PCacheDelete(key string) error { method PCacheExpire (line 3579) | func (a *adapter) PCacheExpire(keyPrefix string, olderThan time.Time) ... method GetTestDB (line 3594) | func (a *adapter) GetTestDB() any { constant adpVersion (line 50) | adpVersion = 116 constant adapterName (line 51) | adapterName = "postgres" constant defaultMaxResults (line 53) | defaultMaxResults = 1024 constant defaultMaxMessageResults (line 55) | defaultMaxMessageResults = 100 constant txTimeoutMultiplier (line 59) | txTimeoutMultiplier = 1.5 type configType (line 62) | type configType struct function createSystemTopic (line 699) | func createSystemTopic(tx pgx.Tx) error { function addTags (line 707) | func addTags(ctx context.Context, tx pgx.Tx, table, keyName string, keyV... function removeTags (line 729) | func removeTags(ctx context.Context, tx pgx.Tx, table, keyName string, k... function tempFetchTags (line 1229) | func tempFetchTags(ctx context.Context, tx pgx.Tx, decoded_uid int64) ([... function createSubscription (line 1445) | func createSubscription(ctx context.Context, tx pgx.Tx, sub *t.Subscript... function subsDelForUser (line 2361) | func subsDelForUser(ctx context.Context, tx pgx.Tx, decoded_uid int64, h... function messageDeleteList (line 2765) | func messageDeleteList(ctx context.Context, tx pgx.Tx, topic string, toD... function deviceHasher (line 2897) | func deviceHasher(deviceID string) string { function deviceDelete (line 2988) | func deviceDelete(ctx context.Context, tx pgx.Tx, uid t.Uid, deviceID st... function credDel (line 3121) | func credDel(ctx context.Context, tx pgx.Tx, uid t.Uid, method, value st... function isDupe (line 3601) | func isDupe(err error) bool { function isMissingTable (line 3610) | func isMissingTable(err error) bool { function isMissingDb (line 3619) | func isMissingDb(err error) bool { function setConnStr (line 3629) | func setConnStr(c configType) (string, error) { function expandQuery (line 3653) | func expandQuery(query string, args ...any) (string, []any) { function flattenSlice (line 3665) | func flattenSlice(slice []any) []any { function rebindWithStart (line 3682) | func rebindWithStart(query string, startAt int) string { function GetTestAdapter (line 3702) | func GetTestAdapter() *adapter { function init (line 3706) | func init() { FILE: server/db/postgres/tests/postgres_test.go type configType (line 36) | type configType struct function TestCreateDb (line 52) | func TestCreateDb(t *testing.T) { function TestUserCreate (line 61) | func TestUserCreate(t *testing.T) { function TestCredUpsert (line 78) | func TestCredUpsert(t *testing.T) { function TestAuthAddRecord (line 125) | func TestAuthAddRecord(t *testing.T) { function TestTopicCreate (line 141) | func TestTopicCreate(t *testing.T) { function decodeUid (line 161) | func decodeUid(u string) int64 { function encodeUid (line 165) | func encodeUid(u string) types.Uid { function TestTopicCreateP2P (line 170) | func TestTopicCreateP2P(t *testing.T) { function TestTopicShare (line 199) | func TestTopicShare(t *testing.T) { function TestMessageSave (line 226) | func TestMessageSave(t *testing.T) { function TestFileStartUpload (line 250) | func TestFileStartUpload(t *testing.T) { function TestUserGet (line 260) | func TestUserGet(t *testing.T) { function TestUserGetAll (line 280) | func TestUserGetAll(t *testing.T) { function TestUserGetByCred (line 306) | func TestUserGetByCred(t *testing.T) { function TestCredGetActive (line 322) | func TestCredGetActive(t *testing.T) { function TestCredGetAll (line 341) | func TestCredGetAll(t *testing.T) { function TestAuthGetUniqueRecord (line 366) | func TestAuthGetUniqueRecord(t *testing.T) { function TestAuthGetRecord (line 388) | func TestAuthGetRecord(t *testing.T) { function TestTopicGet (line 410) | func TestTopicGet(t *testing.T) { function TestTopicsForUser (line 428) | func TestTopicsForUser(t *testing.T) { function TestUsersForTopic (line 470) | func TestUsersForTopic(t *testing.T) { function TestOwnTopics (line 500) | func TestOwnTopics(t *testing.T) { function TestChannelsForUser (line 513) | func TestChannelsForUser(t *testing.T) { function TestSubscriptionGet (line 525) | func TestSubscriptionGet(t *testing.T) { function TestSubsForUser (line 545) | func TestSubsForUser(t *testing.T) { function TestSubsForTopic (line 564) | func TestSubsForTopic(t *testing.T) { function TestFind (line 586) | func TestFind(t *testing.T) { function TestFindOne (line 596) | func TestFindOne(t *testing.T) { function TestMessageGetAll (line 617) | func TestMessageGetAll(t *testing.T) { function TestFileGet (line 640) | func TestFileGet(t *testing.T) { function TestUserUpdate (line 651) | func TestUserUpdate(t *testing.T) { function TestUserUpdateTags (line 679) | func TestUserUpdateTags(t *testing.T) { function TestUserGetUnvalidated (line 722) | func TestUserGetUnvalidated(t *testing.T) { function TestCredFail (line 735) | func TestCredFail(t *testing.T) { function TestCredConfirm (line 760) | func TestCredConfirm(t *testing.T) { function TestAuthUpdRecord (line 785) | func TestAuthUpdRecord(t *testing.T) { function TestTopicUpdateOnMessage (line 820) | func TestTopicUpdateOnMessage(t *testing.T) { function TestTopicUpdate (line 846) | func TestTopicUpdate(t *testing.T) { function TestTopicUpdateSubCnt (line 864) | func TestTopicUpdateSubCnt(t *testing.T) { function TestTopicOwnerChange (line 883) | func TestTopicOwnerChange(t *testing.T) { function TestSubsUpdate (line 899) | func TestSubsUpdate(t *testing.T) { function TestSubsDelete (line 931) | func TestSubsDelete(t *testing.T) { function TestSubsDelForUser (line 947) | func TestSubsDelForUser(t *testing.T) { function TestDeviceUpsert (line 951) | func TestDeviceUpsert(t *testing.T) { function TestMessageAttachments (line 996) | func TestMessageAttachments(t *testing.T) { function TestFileFinishUpload (line 1014) | func TestFileFinishUpload(t *testing.T) { function TestDeviceGetAll (line 1028) | func TestDeviceGetAll(t *testing.T) { function TestDeviceDelete (line 1045) | func TestDeviceDelete(t *testing.T) { function TestPCacheUpsert (line 1075) | func TestPCacheUpsert(t *testing.T) { function TestPCacheGet (line 1093) | func TestPCacheGet(t *testing.T) { function TestPCacheDelete (line 1109) | func TestPCacheDelete(t *testing.T) { function TestPCacheExpire (line 1122) | func TestPCacheExpire(t *testing.T) { function TestCredDel (line 1135) | func TestCredDel(t *testing.T) { function TestAuthDelScheme (line 1163) | func TestAuthDelScheme(t *testing.T) { function TestAuthDelAllRecords (line 1177) | func TestAuthDelAllRecords(t *testing.T) { function TestMessageDeleteList (line 1193) | func TestMessageDeleteList(t *testing.T) { function TestTopicDelete (line 1260) | func TestTopicDelete(t *testing.T) { function TestFileDeleteUnused (line 1289) | func TestFileDeleteUnused(t *testing.T) { function TestUserDelete (line 1299) | func TestUserDelete(t *testing.T) { function TestUserUnreadCount (line 1329) | func TestUserUnreadCount(t *testing.T) { function TestMessageGetDeleted (line 1362) | func TestMessageGetDeleted(t *testing.T) { function mismatchErrorString (line 1378) | func mismatchErrorString(key string, got, want any) string { function init (line 1382) | func init() { FILE: server/db/rethinkdb/adapter.go type adapter (line 24) | type adapter struct method Open (line 66) | func (a *adapter) Open(jsonconfig json.RawMessage) error { method Close (line 142) | func (a *adapter) Close() error { method IsOpen (line 155) | func (a *adapter) IsOpen() bool { method GetDbVersion (line 160) | func (a *adapter) GetDbVersion() (int, error) { method updateDbVersion (line 188) | func (a *adapter) updateDbVersion(v int) error { method CheckDbVersion (line 198) | func (a *adapter) CheckDbVersion() error { method Version (line 213) | func (adapter) Version() int { method Stats (line 218) | func (a *adapter) Stats() any { method GetName (line 238) | func (a *adapter) GetName() string { method SetMaxResults (line 243) | func (a *adapter) SetMaxResults(val int) error { method CreateDb (line 254) | func (a *adapter) CreateDb(reset bool) error { method UpgradeDb (line 404) | func (a *adapter) UpgradeDb() error { method UserCreate (line 585) | func (a *adapter) UserCreate(user *t.User) error { method AuthAddRecord (line 591) | func (a *adapter) AuthAddRecord(uid t.Uid, scheme, unique string, auth... method AuthDelScheme (line 612) | func (a *adapter) AuthDelScheme(uid t.Uid, scheme string) error { method AuthDelAllRecords (line 621) | func (a *adapter) AuthDelAllRecords(uid t.Uid) (int, error) { method AuthUpdRecord (line 627) | func (a *adapter) AuthUpdRecord(uid t.Uid, scheme, unique string, auth... method AuthGetRecord (line 687) | func (a *adapter) AuthGetRecord(uid t.Uid, scheme string) (string, aut... method AuthGetUniqueRecord (line 717) | func (a *adapter) AuthGetUniqueRecord(unique string) (t.Uid, auth.Leve... method UserGet (line 745) | func (a *adapter) UserGet(uid t.Uid) (*t.User, error) { method UserGetAll (line 765) | func (a *adapter) UserGetAll(ids ...t.Uid) ([]t.User, error) { method UserDelete (line 795) | func (a *adapter) UserDelete(uid t.Uid, hard bool) error { method clearUserDellog (line 965) | func (a *adapter) clearUserDellog(uid t.Uid, topics []any) error { method topicNamesForUser (line 1022) | func (a *adapter) topicNamesForUser(query rdb.Term, includeChan bool) ... method p2pTopicsForUser (line 1050) | func (a *adapter) p2pTopicsForUser(uid t.Uid) ([]any, error) { method topicStateForUser (line 1058) | func (a *adapter) topicStateForUser(uid t.Uid, now time.Time, update a... method UserUpdate (line 1106) | func (a *adapter) UserUpdate(uid t.Uid, update map[string]any) error { method UserUpdateTags (line 1121) | func (a *adapter) UserUpdateTags(uid t.Uid, add, remove, reset []strin... method UserGetByCred (line 1164) | func (a *adapter) UserGetByCred(method, value string) (t.Uid, error) { method UserUnreadCount (line 1187) | func (a *adapter) UserUnreadCount(ids ...t.Uid) (map[t.Uid]int, error) { method UserGetUnvalidated (line 1244) | func (a *adapter) UserGetUnvalidated(lastUpdatedBefore time.Time, limi... method TopicCreate (line 1296) | func (a *adapter) TopicCreate(topic *t.Topic) error { method TopicCreateP2P (line 1302) | func (a *adapter) TopicCreateP2P(initiator, invited *t.Subscription) e... method TopicGet (line 1343) | func (a *adapter) TopicGet(topic string) (*t.Topic, error) { method TopicsForUser (line 1397) | func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.Q... method UsersForTopic (line 1576) | func (a *adapter) UsersForTopic(topic string, keepDeleted bool, opts *... method OwnTopics (line 1685) | func (a *adapter) OwnTopics(uid t.Uid) ([]string, error) { method ChannelsForUser (line 1701) | func (a *adapter) ChannelsForUser(uid t.Uid) ([]string, error) { method TopicShare (line 1722) | func (a *adapter) TopicShare(topic string, shares []*t.Subscription) e... method TopicDelete (line 1753) | func (a *adapter) TopicDelete(topic string, isChan, hard bool) error { method TopicUpdateOnMessage (line 1784) | func (a *adapter) TopicUpdateOnMessage(topic string, msg *t.Message) e... method TopicUpdateSubCnt (line 1797) | func (a *adapter) TopicUpdateSubCnt(topic string) error { method TopicUpdate (line 1822) | func (a *adapter) TopicUpdate(topic string, update map[string]any) err... method TopicOwnerChange (line 1831) | func (a *adapter) TopicOwnerChange(topic string, newOwner t.Uid) error { method SubscriptionGet (line 1838) | func (a *adapter) SubscriptionGet(topic string, user t.Uid, keepDelete... method SubsForUser (line 1864) | func (a *adapter) SubsForUser(forUser t.Uid) ([]t.Subscription, error) { method SubsForTopic (line 1887) | func (a *adapter) SubsForTopic(topic string, keepDeleted bool, opts *t... method SubsUpdate (line 1925) | func (a *adapter) SubsUpdate(topic string, user t.Uid, update map[stri... method SubsDelete (line 1939) | func (a *adapter) SubsDelete(topic string, user t.Uid) error { method subsDelForTopic (line 2011) | func (a *adapter) subsDelForTopic(topic string, isChan, hard bool) err... method subsDelForUser (line 2034) | func (a *adapter) subsDelForUser(user t.Uid, hard bool) error { method Find (line 2078) | func (a *adapter) Find(caller, promoPrefix string, req [][]string, opt... method FindOne (line 2191) | func (a *adapter) FindOne(tag string) (string, error) { method MessageSave (line 2221) | func (a *adapter) MessageSave(msg *t.Message) error { method MessageGetAll (line 2227) | func (a *adapter) MessageGetAll(topic string, forUser t.Uid, opts *t.Q... method MessageGetDeleted (line 2280) | func (a *adapter) MessageGetDeleted(topic string, forUser t.Uid, opts ... method messagesHardDelete (line 2341) | func (a *adapter) messagesHardDelete(topic string) error { method MessageDeleteList (line 2391) | func (a *adapter) MessageDeleteList(topic string, toDel *t.DelMessage)... method DeviceUpsert (line 2489) | func (a *adapter) DeviceUpsert(uid t.Uid, def *t.DeviceDef) error { method DeviceGetAll (line 2533) | func (a *adapter) DeviceGetAll(uids ...t.Uid) (map[t.Uid][]t.DeviceDef... method DeviceDelete (line 2577) | func (a *adapter) DeviceDelete(uid t.Uid, deviceID string) error { method CredUpsert (line 2600) | func (a *adapter) CredUpsert(cred *t.Credential) (bool, error) { method CredDel (line 2667) | func (a *adapter) CredDel(uid t.Uid, method, value string) error { method credGetActive (line 2707) | func (a *adapter) credGetActive(uid t.Uid, method string) (*t.Credenti... method CredConfirm (line 2730) | func (a *adapter) CredConfirm(uid t.Uid, method string) error { method CredFail (line 2756) | func (a *adapter) CredFail(uid t.Uid, method string) error { method CredGetActive (line 2769) | func (a *adapter) CredGetActive(uid t.Uid, method string) (*t.Credenti... method CredGetAll (line 2774) | func (a *adapter) CredGetAll(uid t.Uid, method string, validatedOnly b... method FileStartUpload (line 2803) | func (a *adapter) FileStartUpload(fd *t.FileDef) error { method FileFinishUpload (line 2809) | func (a *adapter) FileFinishUpload(fd *t.FileDef, success bool, size i... method FileGet (line 2838) | func (a *adapter) FileGet(fid string) (*t.FileDef, error) { method FileLinkAttachments (line 2859) | func (a *adapter) FileLinkAttachments(topic string, userId, msgId t.Ui... method FileDeleteUnused (line 2947) | func (a *adapter) FileDeleteUnused(olderThan time.Time, limit int) ([]... method decFileUseCounter (line 2979) | func (a *adapter) decFileUseCounter(query rdb.Term) error { method PCacheGet (line 3010) | func (a *adapter) PCacheGet(key string) (string, error) { method PCacheUpsert (line 3030) | func (a *adapter) PCacheUpsert(key string, value string, failOnDuplica... method PCacheDelete (line 3058) | func (a *adapter) PCacheDelete(key string) error { method PCacheExpire (line 3064) | func (a *adapter) PCacheExpire(keyPrefix string, olderThan time.Time) ... method GetTestDB (line 3078) | func (a *adapter) GetTestDB() any { constant adpVersion (line 35) | adpVersion = 116 constant adapterName (line 36) | adapterName = "rethinkdb" constant defaultHost (line 38) | defaultHost = "localhost:28015" constant defaultDatabase (line 39) | defaultDatabase = "tinode" constant defaultMaxResults (line 41) | defaultMaxResults = 1024 constant defaultMaxMessageResults (line 43) | defaultMaxMessageResults = 100 type configType (line 47) | type configType struct function createSystemTopic (line 570) | func createSystemTopic(a *adapter) error { function rangeToQuery (line 2367) | func rangeToQuery(delRanges []t.Range, topic string, query rdb.Term) rdb... function deviceHasher (line 2478) | func deviceHasher(deviceID string) string { function isNoResults (line 3084) | func isNoResults(err error) bool { function isMissingDb (line 3092) | func isMissingDb(err error) bool { function GetTestAdapter (line 3103) | func GetTestAdapter() *adapter { function init (line 3107) | func init() { FILE: server/db/rethinkdb/tests/rethink_test.go type configType (line 33) | type configType struct function TestCreateDb (line 48) | func TestCreateDb(t *testing.T) { function TestUserCreate (line 57) | func TestUserCreate(t *testing.T) { function TestCredUpsert (line 79) | func TestCredUpsert(t *testing.T) { function TestAuthAddRecord (line 126) | func TestAuthAddRecord(t *testing.T) { function TestTopicCreate (line 142) | func TestTopicCreate(t *testing.T) { function TestTopicCreateP2P (line 163) | func TestTopicCreateP2P(t *testing.T) { function TestTopicShare (line 191) | func TestTopicShare(t *testing.T) { function TestMessageSave (line 206) | func TestMessageSave(t *testing.T) { function TestFileStartUpload (line 230) | func TestFileStartUpload(t *testing.T) { function TestUserGet (line 240) | func TestUserGet(t *testing.T) { function TestUserGetAll (line 260) | func TestUserGetAll(t *testing.T) { function TestUserGetByCred (line 286) | func TestUserGetByCred(t *testing.T) { function TestCredGetActive (line 302) | func TestCredGetActive(t *testing.T) { function TestCredGetAll (line 321) | func TestCredGetAll(t *testing.T) { function TestUserGetUnvalidated (line 346) | func TestUserGetUnvalidated(t *testing.T) { function TestAuthGetUniqueRecord (line 359) | func TestAuthGetUniqueRecord(t *testing.T) { function TestAuthGetRecord (line 381) | func TestAuthGetRecord(t *testing.T) { function TestTopicGet (line 403) | func TestTopicGet(t *testing.T) { function TestTopicsForUser (line 421) | func TestTopicsForUser(t *testing.T) { function TestUsersForTopic (line 463) | func TestUsersForTopic(t *testing.T) { function TestOwnTopics (line 493) | func TestOwnTopics(t *testing.T) { function TestChannelsForUser (line 506) | func TestChannelsForUser(t *testing.T) { function TestSubscriptionGet (line 518) | func TestSubscriptionGet(t *testing.T) { function TestSubsForUser (line 538) | func TestSubsForUser(t *testing.T) { function TestSubsForTopic (line 557) | func TestSubsForTopic(t *testing.T) { function TestFind (line 579) | func TestFind(t *testing.T) { function TestFindOne (line 590) | func TestFindOne(t *testing.T) { function TestMessageGetAll (line 611) | func TestMessageGetAll(t *testing.T) { function TestFileGet (line 634) | func TestFileGet(t *testing.T) { function TestUserUpdate (line 647) | func TestUserUpdate(t *testing.T) { function TestUserUpdateTags (line 679) | func TestUserUpdateTags(t *testing.T) { function TestCredFail (line 713) | func TestCredFail(t *testing.T) { function TestCredConfirm (line 744) | func TestCredConfirm(t *testing.T) { function TestAuthUpdRecord (line 784) | func TestAuthUpdRecord(t *testing.T) { function TestTopicUpdateOnMessage (line 826) | func TestTopicUpdateOnMessage(t *testing.T) { function TestTopicUpdate (line 858) | func TestTopicUpdate(t *testing.T) { function TestTopicUpdateSubCnt (line 882) | func TestTopicUpdateSubCnt(t *testing.T) { function TestTopicOwnerChange (line 906) | func TestTopicOwnerChange(t *testing.T) { function TestSubsUpdate (line 928) | func TestSubsUpdate(t *testing.T) { function TestSubsDelete (line 972) | func TestSubsDelete(t *testing.T) { function TestDeviceUpsert (line 994) | func TestDeviceUpsert(t *testing.T) { function TestMessageAttachments (line 1069) | func TestMessageAttachments(t *testing.T) { function TestFileFinishUpload (line 1107) | func TestFileFinishUpload(t *testing.T) { function TestDeviceGetAll (line 1121) | func TestDeviceGetAll(t *testing.T) { function TestDeviceDelete (line 1138) | func TestDeviceDelete(t *testing.T) { function TestPCacheUpsert (line 1183) | func TestPCacheUpsert(t *testing.T) { function TestPCacheGet (line 1201) | func TestPCacheGet(t *testing.T) { function TestPCacheDelete (line 1217) | func TestPCacheDelete(t *testing.T) { function TestPCacheExpire (line 1230) | func TestPCacheExpire(t *testing.T) { function TestCredDel (line 1243) | func TestCredDel(t *testing.T) { function TestAuthDelScheme (line 1282) | func TestAuthDelScheme(t *testing.T) { function TestAuthDelAllRecords (line 1296) | func TestAuthDelAllRecords(t *testing.T) { function TestMessageDeleteList (line 1312) | func TestMessageDeleteList(t *testing.T) { function TestTopicDelete (line 1412) | func TestTopicDelete(t *testing.T) { function TestFileDeleteUnused (line 1448) | func TestFileDeleteUnused(t *testing.T) { function TestUserDelete (line 1460) | func TestUserDelete(t *testing.T) { function TestMessageGetDeleted (line 1497) | func TestMessageGetDeleted(t *testing.T) { function TestUserUnreadCount (line 1512) | func TestUserUnreadCount(t *testing.T) { function mismatchErrorString (line 1546) | func mismatchErrorString(key string, got, want any) string { function init (line 1550) | func init() { FILE: server/drafty/drafty.go constant maxDataSize (line 13) | maxDataSize = 128 constant maxDataCount (line 15) | maxDataCount = 8 type style (line 23) | type style struct type entity (line 30) | type entity struct type document (line 35) | type document struct type span (line 44) | type span struct method styleToSpan (line 134) | func (s *span) styleToSpan(in *style) error { type node (line 52) | type node struct type previewState (line 58) | type previewState struct function Preview (line 68) | func Preview(content any, length int) (string, error) { type plainTextState (line 103) | type plainTextState struct function PlainText (line 109) | func PlainText(content any) (string, error) { type spanfmt (line 153) | type spanfmt struct type formatter (line 169) | type formatter function toTree (line 173) | func toTree(drafty *document) (*node, error) { function forEach (line 237) | func forEach(g *graphemes, start, end int, spans []*span) ([]*node, erro... function plainTextFormatter (line 283) | func plainTextFormatter(n *node, ctx any) error { function previewFormatter (line 339) | func previewFormatter(n *node, ctx any) error { function nullableMapGet (line 412) | func nullableMapGet(data map[string]any, key string) (string, bool) { function decodeAsDrafty (line 421) | func decodeAsDrafty(content any) (*document, error) { function decodeAsStyle (line 475) | func decodeAsStyle(content any) (*style, error) { function decodeAsEntity (line 513) | func decodeAsEntity(content any) (*entity, error) { function copyLight (line 541) | func copyLight(in any) map[string]any { function intFromNumeric (line 570) | func intFromNumeric(num any) (int, error) { function getVariableTypeSize (line 593) | func getVariableTypeSize(x any) int { function isFixedLengthType (line 605) | func isFixedLengthType(x any) bool { FILE: server/drafty/drafty_test.go function TestPlainText (line 98) | func TestPlainText(t *testing.T) { function TestPreview (line 141) | func TestPreview(t *testing.T) { FILE: server/drafty/grapheme.go type graphemes (line 8) | type graphemes struct method length (line 33) | func (g *graphemes) length() int { method string (line 41) | func (g *graphemes) string() string { method slice (line 49) | func (g *graphemes) slice(start, end int) *graphemes { method append (line 69) | func (g *graphemes) append(other *graphemes) *graphemes { function prepareGraphemes (line 18) | func prepareGraphemes(str string) *graphemes { FILE: server/hdl_files.go function largeFileServeHTTP (line 37) | func largeFileServeHTTP(wrt http.ResponseWriter, req *http.Request) { function largeFileReceiveHTTP (line 170) | func largeFileReceiveHTTP(wrt http.ResponseWriter, req *http.Request) { method LargeFileServe (line 353) | func (*grpcNodeServer) LargeFileServe(req *pbx.FileDownReq, stream pbx.N... method LargeFileReceive (line 447) | func (*grpcNodeServer) LargeFileReceive(stream pbx.Node_LargeFileReceive... function largeFileRunGarbageCollection (line 580) | func largeFileRunGarbageCollection(period time.Duration, blockSize int) ... function authFileRequest (line 604) | func authFileRequest(authMethod, secret, sid, remoteAddr string) (types.... FILE: server/hdl_grpc.go type grpcNodeServer (line 25) | type grpcNodeServer struct method MessageLoop (line 38) | func (*grpcNodeServer) MessageLoop(stream pbx.Node_MessageLoopServer) ... method closeGrpc (line 29) | func (sess *Session) closeGrpc() { method sendMessageGrpc (line 76) | func (sess *Session) sendMessageGrpc(msg any) bool { method writeGrpcLoop (line 89) | func (sess *Session) writeGrpcLoop() { function grpcWrite (line 139) | func grpcWrite(sess *Session, msg any) error { function serveGrpc (line 147) | func serveGrpc(addr string, kaEnabled bool, tlsConf *tls.Config) (*grpc.... FILE: server/hdl_longpoll.go method sendMessageLp (line 22) | func (sess *Session) sendMessageLp(wrt http.ResponseWriter, msg any) bool { method writeOnce (line 37) | func (sess *Session) writeOnce(wrt http.ResponseWriter, req *http.Reques... function lpWrite (line 91) | func lpWrite(wrt http.ResponseWriter, msg any) error { method readOnce (line 97) | func (sess *Session) readOnce(wrt http.ResponseWriter, req *http.Request... function serveLongPoll (line 124) | func serveLongPoll(wrt http.ResponseWriter, req *http.Request) { FILE: server/hdl_websock.go constant writeWait (line 24) | writeWait = 10 * time.Second constant pongWait (line 27) | pongWait = idleSessionTimeout constant pingPeriod (line 30) | pingPeriod = (pongWait * 9) / 10 method closeWS (line 33) | func (sess *Session) closeWS() { method readLoop (line 39) | func (sess *Session) readLoop() { method sendMessage (line 67) | func (sess *Session) sendMessage(msg any) bool { method writeLoop (line 84) | func (sess *Session) writeLoop() { function wsWrite (line 148) | func wsWrite(ws *websocket.Conn, mt int, msg any) error { function serveWebSocket (line 168) | func serveWebSocket(wrt http.ResponseWriter, req *http.Request) { FILE: server/http.go function listenAndServe (line 31) | func listenAndServe(addr string, mux *http.ServeMux, tlfConf *tls.Config... function signalHandler (line 154) | func signalHandler() <-chan bool { type errorResponseWriter (line 174) | type errorResponseWriter struct method WriteHeader (line 179) | func (w *errorResponseWriter) WriteHeader(status int) { method Write (line 189) | func (w *errorResponseWriter) Write(p []byte) (n int, err error) { function httpErrorHandler (line 204) | func httpErrorHandler(h http.Handler) http.Handler { function serve404 (line 212) | func serve404(wrt http.ResponseWriter, req *http.Request) { function tlsRedirect (line 226) | func tlsRedirect(toPort string) http.HandlerFunc { function optionalHttpHeaders (line 264) | func optionalHttpHeaders(handler http.Handler) http.Handler { function cacheControlHandler (line 289) | func cacheControlHandler(maxAge int, handler http.Handler) http.Handler { function getAPIKey (line 301) | func getAPIKey(req *http.Request) string { function getHttpAuth (line 330) | func getHttpAuth(req *http.Request) (method, secret string) { function getRemoteAddr (line 368) | func getRemoteAddr(req *http.Request) string { type debugSession (line 383) | type debugSession struct type debugTopic (line 393) | type debugTopic struct type debugCachedUser (line 403) | type debugCachedUser struct type debugDump (line 410) | type debugDump struct function serveStatus (line 419) | func serveStatus(wrt http.ResponseWriter, req *http.Request) { FILE: server/http_pprof.go function servePprof (line 20) | func servePprof(mux *http.ServeMux, serveAt string) { function profileHandler (line 31) | func profileHandler(wrt http.ResponseWriter, req *http.Request) { function servePprofError (line 47) | func servePprofError(wrt http.ResponseWriter, status int, txt string) { FILE: server/hub.go type topicUnreg (line 33) | type topicUnreg struct type userStatusReq (line 48) | type userStatusReq struct type Hub (line 56) | type Hub struct method topicGet (line 89) | func (h *Hub) topicGet(name string) *Topic { method topicPut (line 96) | func (h *Hub) topicPut(name string, t *Topic) { method topicDel (line 101) | func (h *Hub) topicDel(name string) { method run (line 151) | func (h *Hub) run() { method topicsStateForUser (line 350) | func (h *Hub) topicsStateForUser(uid types.Uid, suspended bool) { method topicUnreg (line 392) | func (h *Hub) topicUnreg(sess *Session, topic string, msg *ClientComMe... method stopTopicsForUser (line 567) | func (h *Hub) stopTopicsForUser(uid types.Uid, reason int, alldone cha... function newHub (line 106) | func newHub() *Hub { function replyOfflineTopicGetDesc (line 605) | func replyOfflineTopicGetDesc(sess *Session, msg *ClientComMessage) { function replyOfflineTopicGetSub (line 720) | func replyOfflineTopicGetSub(sess *Session, msg *ClientComMessage) { function replyOfflineTopicSetSub (line 778) | func replyOfflineTopicSetSub(sess *Session, msg *ClientComMessage) { FILE: server/init_topic.go function topicInit (line 21) | func topicInit(t *Topic, join *ClientComMessage, h *Hub) { function initTopicMe (line 138) | func initTopicMe(t *Topic, sreg *ClientComMessage) error { function initTopicFnd (line 188) | func initTopicFnd(t *Topic, sreg *ClientComMessage) error { function initTopicP2P (line 227) | func initTopicP2P(t *Topic, sreg *ClientComMessage) error { function initTopicNewGrp (line 502) | func initTopicNewGrp(t *Topic, sreg *ClientComMessage, isChan bool) error { function initTopicGrp (line 628) | func initTopicGrp(t *Topic) error { function initTopicSys (line 675) | func initTopicSys(t *Topic) error { function initTopicSlf (line 709) | func initTopicSlf(t *Topic, sreg *ClientComMessage) error { method loadSubscribers (line 817) | func (t *Topic) loadSubscribers() error { FILE: server/logs/logs.go function parseFlags (line 19) | func parseFlags(logFlags string) int { function Init (line 50) | func Init(output io.Writer, logFlags string) { FILE: server/main.go constant currentVersion (line 65) | currentVersion = "0.25" constant minSupportedVersion (line 67) | minSupportedVersion = "0.20" constant idleSessionTimeout (line 70) | idleSessionTimeout = time.Second * 55 constant idleMasterTopicTimeout (line 72) | idleMasterTopicTimeout = time.Second * 4 constant idleProxyTopicTimeout (line 74) | idleProxyTopicTimeout = time.Second * 2 constant defaultMaxMessageSize (line 77) | defaultMaxMessageSize = 1 << 19 constant defaultMaxSubscriberCount (line 81) | defaultMaxSubscriberCount = 256 constant defaultMaxTagCount (line 84) | defaultMaxTagCount = 16 constant minTagLength (line 87) | minTagLength = 2 constant maxTagLength (line 89) | maxTagLength = 96 constant uaTimerDelay (line 92) | uaTimerDelay = time.Second * 5 constant defaultMaxDeleteCount (line 95) | defaultMaxDeleteCount = 1024 constant defaultApiPath (line 98) | defaultApiPath = "/" constant defaultStaticMount (line 101) | defaultStaticMount = "/" constant defaultStaticPath (line 104) | defaultStaticPath = "static" constant defaultCountryCode (line 108) | defaultCountryCode = "US" constant defaultCallEstablishmentTimeout (line 111) | defaultCallEstablishmentTimeout = 30 type credValidator (line 130) | type credValidator struct type validatorConfig (line 220) | type validatorConfig struct type accountGcConfig (line 230) | type accountGcConfig struct type mediaConfig (line 241) | type mediaConfig struct type configType (line 255) | type configType struct function main (line 334) | func main() { FILE: server/media/fs/filesys.go constant defaultServeURL (line 26) | defaultServeURL = "/v0/file/s/" constant defaultCacheControl (line 27) | defaultCacheControl = "max-age=86400" constant handlerName (line 29) | handlerName = "fs" type fileConfig (line 32) | type fileConfig struct type fshandler (line 40) | type fshandler struct method Init (line 46) | func (fh *fshandler) Init(jsconf string) error { method Headers (line 74) | func (fh *fshandler) Headers(method string, url *url.URL, headers http... method Upload (line 112) | func (fh *fshandler) Upload(fdef *types.FileDef, file io.Reader) (stri... method Download (line 155) | func (fh *fshandler) Download(url string) (*types.FileDef, media.ReadS... method Delete (line 180) | func (fh *fshandler) Delete(locations []string) error { method GetIdFromUrl (line 192) | func (fh *fshandler) GetIdFromUrl(url string) types.Uid { method getFileRecord (line 197) | func (fh *fshandler) getFileRecord(fid types.Uid) (*types.FileDef, err... function etagFromPath (line 208) | func etagFromPath(path string) string { function init (line 215) | func init() { FILE: server/media/media.go type ReadSeekCloser (line 19) | type ReadSeekCloser interface type Handler (line 26) | type Handler interface type AllowedOrigin (line 48) | type AllowedOrigin struct function GetIdFromUrl (line 58) | func GetIdFromUrl(url, serveUrl string) types.Uid { function ParseCORSAllow (line 69) | func ParseCORSAllow(allowed []string) ([]AllowedOrigin, error) { function matchCORSOrigin (line 104) | func matchCORSOrigin(allowed []AllowedOrigin, origin string) string { function matchCORSMethod (line 164) | func matchCORSMethod(allowMethods []string, method string) bool { function CORSHandler (line 175) | func CORSHandler(method string, reqHeader http.Header, allowedOrigins []... FILE: server/media/media_test.go function TestMatchCORSOrigin (line 8) | func TestMatchCORSOrigin(t *testing.T) { function containsSubstring (line 219) | func containsSubstring(str, substr string) bool { FILE: server/media/s3/s3.go constant defaultServeURL (line 31) | defaultServeURL = "/v0/file/s/" constant defaultCacheControl (line 32) | defaultCacheControl = "no-cache, must-revalidate" constant handlerName (line 34) | handlerName = "s3" constant defaultPresignDuration (line 36) | defaultPresignDuration = 120 type awsconfig (line 39) | type awsconfig struct type awshandler (line 53) | type awshandler struct method Init (line 74) | func (ah *awshandler) Init(jsconf string) error { method Headers (line 171) | func (ah *awshandler) Headers(method string, url *url.URL, headers htt... method Upload (line 237) | func (ah *awshandler) Upload(fdef *types.FileDef, file io.Reader) (str... method Download (line 277) | func (ah *awshandler) Download(url string) (*types.FileDef, media.Read... method Delete (line 282) | func (ah *awshandler) Delete(locations []string) error { method GetIdFromUrl (line 298) | func (ah *awshandler) GetIdFromUrl(url string) types.Uid { method getFileRecord (line 303) | func (ah *awshandler) getFileRecord(fid types.Uid) (*types.FileDef, er... type readerCounter (line 60) | type readerCounter struct method Read (line 67) | func (rc *readerCounter) Read(buf []byte) (int, error) { function init (line 314) | func init() { FILE: server/pbconverter.go function pbServCtrlSerializeBasic (line 14) | func pbServCtrlSerializeBasic(ctrl *MsgServerCtrl) *pbx.ServerCtrl { function pbServCtrlSerialize (line 31) | func pbServCtrlSerialize(ctrl *MsgServerCtrl) *pbx.ServerMsg_Ctrl { function pbServDataSerialize (line 37) | func pbServDataSerialize(data *MsgServerData) *pbx.ServerMsg_Data { function pbServPresSerialize (line 51) | func pbServPresSerialize(pres *MsgServerPres) *pbx.ServerMsg_Pres { function pbServInfoSerialize (line 99) | func pbServInfoSerialize(info *MsgServerInfo) *pbx.ServerMsg_Info { function pbServMetaSerialize (line 113) | func pbServMetaSerialize(meta *MsgServerMeta) *pbx.ServerMsg_Meta { function pbServSerialize (line 129) | func pbServSerialize(msg *ServerComMessage) *pbx.ServerMsg { function pbServDeserialize (line 148) | func pbServDeserialize(pkt *pbx.ServerMsg) *ServerComMessage { function pbCliSerialize (line 240) | func pbCliSerialize(msg *ClientComMessage) *pbx.ClientMsg { function pbCliDeserialize (line 391) | func pbCliDeserialize(pkt *pbx.ClientMsg) *ClientComMessage { function interfaceMapToByteMap (line 505) | func interfaceMapToByteMap(in map[string]any) map[string][]byte { function byteMapToInterfaceMap (line 515) | func byteMapToInterfaceMap(in map[string][]byte) map[string]any { function interfaceToBytes (line 525) | func interfaceToBytes(in any) []byte { function bytesToInterface (line 533) | func bytesToInterface(in []byte) any { function timeToInt64 (line 544) | func timeToInt64(ts *time.Time) int64 { function int64ToTime (line 551) | func int64ToTime(ts int64) *time.Time { function pbGetQuerySerialize (line 559) | func pbGetQuerySerialize(in *MsgGetQuery) *pbx.GetQuery { function pbGetQueryDeserialize (line 601) | func pbGetQueryDeserialize(in *pbx.GetQuery) *MsgGetQuery { function pbSetDescSerialize (line 641) | func pbSetDescSerialize(in *MsgSetDesc) *pbx.SetDesc { function pbSetDescDeserialize (line 658) | func pbSetDescDeserialize(in *pbx.SetDesc) *MsgSetDesc { function pbSetQuerySerialize (line 680) | func pbSetQuerySerialize(in *MsgSetQuery) *pbx.SetQuery { function pbSetQueryDeserialize (line 703) | func pbSetQueryDeserialize(in *pbx.SetQuery) *MsgSetQuery { function pbInfoNoteWhatSerialize (line 748) | func pbInfoNoteWhatSerialize(what string) pbx.InfoNote { function pbInfoNoteWhatDeserialize (line 765) | func pbInfoNoteWhatDeserialize(what pbx.InfoNote) string { function pbCallEventSerialize (line 781) | func pbCallEventSerialize(event string) pbx.CallEvent { function pbCallEventDeserialize (line 806) | func pbCallEventDeserialize(event pbx.CallEvent) string { function pbAccessModeSerialize (line 828) | func pbAccessModeSerialize(acs *MsgAccessMode) *pbx.AccessMode { function pbAccessModeDeserialize (line 839) | func pbAccessModeDeserialize(acs *pbx.AccessMode) *MsgAccessMode { function pbDefaultAcsSerialize (line 850) | func pbDefaultAcsSerialize(defacs *MsgDefaultAcsMode) *pbx.DefaultAcsMode { function pbDefaultAcsDeserialize (line 861) | func pbDefaultAcsDeserialize(defacs *pbx.DefaultAcsMode) *MsgDefaultAcsM... function pbTopicDescSerialize (line 878) | func pbTopicDescSerialize(desc *MsgTopicDesc) *pbx.TopicDesc { function pbTopicDescDeserialize (line 906) | func pbTopicDescDeserialize(desc *pbx.TopicDesc) *MsgTopicDesc { function pbTopicSerializeToDesc (line 937) | func pbTopicSerializeToDesc(topic *Topic) *pbx.TopicDesc { function pbTopicSubSliceSerialize (line 955) | func pbTopicSubSliceSerialize(subs []MsgTopicSub) []*pbx.TopicSub { function pbTopicSubSerialize (line 967) | func pbTopicSubSerialize(sub *MsgTopicSub) *pbx.TopicSub { function pbTopicSubSliceDeserialize (line 991) | func pbTopicSubSliceDeserialize(subs []*pbx.TopicSub) []MsgTopicSub { function pbSubSliceDeserialize (line 1026) | func pbSubSliceDeserialize(subs []*pbx.TopicSub) []types.Subscription { function pbDelQuerySerialize (line 1057) | func pbDelQuerySerialize(in []MsgRange) []*pbx.SeqRange { function pbDelQueryDeserialize (line 1070) | func pbDelQueryDeserialize(in []*pbx.SeqRange) []MsgRange { function pbDelValuesSerialize (line 1084) | func pbDelValuesSerialize(in *MsgDelValues) *pbx.DelValues { function pbDelValuesDeserialize (line 1095) | func pbDelValuesDeserialize(in *pbx.DelValues) *MsgDelValues { function pbClientCredSerialize (line 1106) | func pbClientCredSerialize(in *MsgCredClient) *pbx.ClientCred { function pbClientCredsSerialize (line 1119) | func pbClientCredsSerialize(in []MsgCredClient) []*pbx.ClientCred { function pbClientCredDeserialize (line 1132) | func pbClientCredDeserialize(in *pbx.ClientCred) *MsgCredClient { function pbClientCredsDeserialize (line 1145) | func pbClientCredsDeserialize(in []*pbx.ClientCred) []MsgCredClient { function pbServerCredsSerialize (line 1158) | func pbServerCredsSerialize(in []*MsgCredServer) []*pbx.ServerCred { function pbServerCredsDeserialize (line 1174) | func pbServerCredsDeserialize(in []*pbx.ServerCred) []*MsgCredServer { FILE: server/plugins.go constant plgHi (line 18) | plgHi = 1 << iota constant plgAcc (line 19) | plgAcc constant plgLogin (line 20) | plgLogin constant plgSub (line 21) | plgSub constant plgLeave (line 22) | plgLeave constant plgPub (line 23) | plgPub constant plgGet (line 24) | plgGet constant plgSet (line 25) | plgSet constant plgDel (line 26) | plgDel constant plgNote (line 27) | plgNote constant plgData (line 28) | plgData constant plgMeta (line 29) | plgMeta constant plgPres (line 30) | plgPres constant plgInfo (line 31) | plgInfo constant plgClientMask (line 33) | plgClientMask = plgHi | plgAcc | plgLogin | plgSub | plgLeave | plgPub |... constant plgServerMask (line 34) | plgServerMask = plgData | plgMeta | plgPres | plgInfo constant plgActCreate (line 38) | plgActCreate = 1 << iota constant plgActUpd (line 39) | plgActUpd constant plgActDel (line 40) | plgActDel constant plgActMask (line 42) | plgActMask = plgActCreate | plgActUpd | plgActDel constant plgTopicMe (line 46) | plgTopicMe = 1 << iota constant plgTopicFnd (line 47) | plgTopicFnd constant plgTopicP2P (line 48) | plgTopicP2P constant plgTopicGrp (line 49) | plgTopicGrp constant plgTopicSys (line 50) | plgTopicSys constant plgTopicSlf (line 51) | plgTopicSlf constant plgTopicNew (line 52) | plgTopicNew constant plgTopicNch (line 53) | plgTopicNch constant plgTopicCatMask (line 55) | plgTopicCatMask = plgTopicMe | plgTopicFnd | plgTopicP2P | plgTopicGrp |... constant plgFilterByTopicType (line 59) | plgFilterByTopicType = 1 << iota constant plgFilterByPacket (line 60) | plgFilterByPacket constant plgFilterByAction (line 61) | plgFilterByAction type PluginFilter (line 74) | type PluginFilter struct function ParsePluginFilter (line 81) | func ParsePluginFilter(s *string, filterBy int) (*PluginFilter, error) { type pluginRPCFilterConfig (line 185) | type pluginRPCFilterConfig struct type pluginConfig (line 202) | type pluginConfig struct type Plugin (line 219) | type Plugin struct function pluginsInit (line 238) | func pluginsInit(configString json.RawMessage) { function pluginsShutdown (line 324) | func pluginsShutdown() { function pluginGenerateClientReq (line 334) | func pluginGenerateClientReq(sess *Session, msg *ClientComMessage) *pbx.... function pluginFireHose (line 353) | func pluginFireHose(sess *Session, msg *ClientComMessage) (*ClientComMes... function pluginFind (line 427) | func pluginFind(user types.Uid, query string) (string, []types.Subscript... function pluginAccount (line 476) | func pluginAccount(user *types.User, action int) { function pluginTopic (line 516) | func pluginTopic(topic *Topic, action int) { function pluginSubscription (line 551) | func pluginSubscription(sub *types.Subscription, action int) { function pluginMessage (line 598) | func pluginMessage(data *MsgServerData, action int) { function pluginDoFiltering (line 633) | func pluginDoFiltering(filter *PluginFilter, msg *ClientComMessage) bool { function pluginActionToCrud (line 706) | func pluginActionToCrud(action int) pbx.Crud { function pluginIDAndTopic (line 719) | func pluginIDAndTopic(msg *ClientComMessage) (string, string) { FILE: server/pres.go type presParams (line 13) | type presParams struct method packAcs (line 38) | func (p *presParams) packAcs() *MsgAccessMode { type presFilters (line 27) | type presFilters struct method addToPerSubs (line 46) | func (t *Topic) addToPerSubs(topic string, online, enabled bool) { method loadContacts (line 69) | func (t *Topic) loadContacts(uid types.Uid) error { method procPresReq (line 97) | func (t *Topic) procPresReq(fromUserID, what string, wantReply bool) str... function notifyOnOrSkip (line 229) | func notifyOnOrSkip(topic, what string, online bool) string { method presUsersOfInterest (line 254) | func (t *Topic) presUsersOfInterest(what, ua string) { function presUsersOfInterestOffline (line 286) | func presUsersOfInterestOffline(uid types.Uid, subs []types.Subscription... method presSubsOnline (line 316) | func (t *Topic) presSubsOnline(what, src string, params *presParams, fil... method userIsPresencer (line 349) | func (t *Topic) userIsPresencer(uid types.Uid) bool { method presSubsOnlineDirect (line 368) | func (t *Topic) presSubsOnlineDirect(what string, params *presParams, fi... method presTermDirect (line 412) | func (s *Session) presTermDirect(subs []string) { method presSubsOffline (line 432) | func (t *Topic) presSubsOffline(what string, params *presParams, method infoSubsOffline (line 479) | func (t *Topic) infoSubsOffline(from types.Uid, what string, seq int, sk... method infoCallSubsOffline (line 504) | func (t *Topic) infoCallSubsOffline(from string, target types.Uid, event... function presSubsOfflineOffline (line 535) | func presSubsOfflineOffline(topic string, cat types.TopicCat, subs []typ... method presSingleUserOffline (line 587) | func (t *Topic) presSingleUserOffline(uid types.Uid, mode types.AccessMode, function presSingleUserOfflineOffline (line 632) | func presSingleUserOfflineOffline(uid types.Uid, original, what string, ... method presPubMessageCount (line 663) | func (t *Topic) presPubMessageCount(uid types.Uid, mode types.AccessMode... method presPubMessageDelete (line 684) | func (t *Topic) presPubMessageDelete(uid types.Uid, mode types.AccessMod... function presOfflineFilter (line 708) | func presOfflineFilter(mode types.AccessMode, what string, pf *presFilte... FILE: server/push.go method channelSubUnsub (line 18) | func (t *Topic) channelSubUnsub(uid types.Uid, sub bool) { method pushForData (line 27) | func (t *Topic) pushForData(fromUid types.Uid, data *MsgServerData, msgM... method preparePushForSubReceipt (line 87) | func (t *Topic) preparePushForSubReceipt(fromUid types.Uid, now time.Tim... method pushForP2PSub (line 111) | func (t *Topic) pushForP2PSub(fromUid, toUid types.Uid, want, given type... method pushForGroupSub (line 122) | func (t *Topic) pushForGroupSub(fromUid types.Uid, now time.Time) *push.... function pushForChanDelete (line 146) | func pushForChanDelete(topicName string, now time.Time) *push.Receipt { method pushForReadRcpt (line 163) | func (t *Topic) pushForReadRcpt(uid types.Uid, seq int, now time.Time) *... function sendPush (line 188) | func sendPush(rcpt *push.Receipt) { FILE: server/push/common/typedef.go type Payload (line 14) | type Payload struct method getStringAttr (line 51) | func (cp Payload) getStringAttr(field string) string { method getIntAttr (line 62) | func (cp Payload) getIntAttr(field string) int { type Config (line 42) | type Config struct method GetStringField (line 73) | func (cc *Config) GetStringField(what, field string) string { method GetIntField (line 86) | func (cc *Config) GetIntField(what, field string) int { type AndroidVisibilityType (line 101) | type AndroidVisibilityType constant AndroidVisibilityUnspecified (line 105) | AndroidVisibilityUnspecified AndroidVisibilityType = "VISIBILITY_UNSPECI... constant AndroidVisibilityPrivate (line 109) | AndroidVisibilityPrivate AndroidVisibilityType = "PRIVATE" constant AndroidVisibilityPublic (line 112) | AndroidVisibilityPublic AndroidVisibilityType = "PUBLIC" constant AndroidVisibilitySecret (line 115) | AndroidVisibilitySecret AndroidVisibilityType = "SECRET" type AndroidNotificationPriorityType (line 120) | type AndroidNotificationPriorityType constant AndroidNotificationPriorityUnspecified (line 124) | AndroidNotificationPriorityUnspecified AndroidNotificationPriorityType =... constant AndroidNotificationPriorityMin (line 128) | AndroidNotificationPriorityMin AndroidNotificationPriorityType = "PRIORI... constant AndroidNotificationPriorityLow (line 132) | AndroidNotificationPriorityLow AndroidNotificationPriorityType = "PRIORI... constant AndroidNotificationPriorityDefault (line 136) | AndroidNotificationPriorityDefault AndroidNotificationPriorityType = "PR... constant AndroidNotificationPriorityHigh (line 141) | AndroidNotificationPriorityHigh AndroidNotificationPriorityType = "PRIOR... constant AndroidNotificationPriorityMax (line 145) | AndroidNotificationPriorityMax AndroidNotificationPriorityType = "PRIORI... type AndroidPriorityType (line 150) | type AndroidPriorityType constant AndroidPriorityNormal (line 157) | AndroidPriorityNormal AndroidPriorityType = "NORMAL" constant AndroidPriorityHigh (line 166) | AndroidPriorityHigh AndroidPriorityType = "HIGH" type InterruptionLevelType (line 170) | type InterruptionLevelType constant InterruptionLevelPassive (line 174) | InterruptionLevelPassive InterruptionLevelType = "passive" constant InterruptionLevelActive (line 177) | InterruptionLevelActive InterruptionLevelType = "active" constant InterruptionLevelTimeSensitive (line 180) | InterruptionLevelTimeSensitive InterruptionLevelType = "time-sensitive" constant InterruptionLevelCritical (line 185) | InterruptionLevelCritical InterruptionLevelType = "critical" constant HeaderApnsID (line 194) | HeaderApnsID = "apns-id" constant HeaderApnsExpiration (line 202) | HeaderApnsExpiration = "apns-expiration" constant HeaderApnsPriority (line 212) | HeaderApnsPriority = "apns-priority" constant HeaderApnsTopic (line 221) | HeaderApnsTopic = "apns-topic" constant HeaderApnsCollapseID (line 226) | HeaderApnsCollapseID = "apns-collapse-id" constant HeaderApnsPushType (line 231) | HeaderApnsPushType = "apns-push-type" type ApnsPushTypeType (line 234) | type ApnsPushTypeType constant ApnsPushTypeAlert (line 241) | ApnsPushTypeAlert ApnsPushTypeType = "alert" constant ApnsPushTypeBackground (line 246) | ApnsPushTypeBackground ApnsPushTypeType = "background" constant ApnsPushTypeLocation (line 252) | ApnsPushTypeLocation ApnsPushTypeType = "location" constant ApnsPushTypeVoip (line 259) | ApnsPushTypeVoip ApnsPushTypeType = "voip" constant ApnsPushTypeFileprovider (line 264) | ApnsPushTypeFileprovider ApnsPushTypeType = "fileprovider" type Aps (line 269) | type Aps struct type ApsAlert (line 283) | type ApsAlert struct constant ErrorUnspecified (line 301) | ErrorUnspecified = "UNSPECIFIED_ERROR" constant ErrorInvalidArgument (line 319) | ErrorInvalidArgument = "INVALID_ARGUMENT" constant ErrorUnregistered (line 333) | ErrorUnregistered = "UNREGISTERED" constant ErrorSenderIDMismatch (line 339) | ErrorSenderIDMismatch = "SENDER_ID_MISMATCH" constant ErrorQuotaExceeded (line 351) | ErrorQuotaExceeded = "QUOTA_EXCEEDED" constant ErrorUnavailable (line 360) | ErrorUnavailable = "UNAVAILABLE" constant ErrorInternal (line 365) | ErrorInternal = "INTERNAL" constant ErrorThirdPartyAuth (line 370) | ErrorThirdPartyAuth = "THIRD_PARTY_AUTH_ERROR" constant ErrorApnsBadCollapseId (line 376) | ErrorApnsBadCollapseId = "BadCollapseId" constant ErrorApnsBadDeviceToken (line 380) | ErrorApnsBadDeviceToken = "BadDeviceToken" constant ErrorApnsBadExpirationDate (line 383) | ErrorApnsBadExpirationDate = "BadExpirationDate" constant ErrorApnsBadMessageId (line 386) | ErrorApnsBadMessageId = "BadMessageId" constant ErrorApnsBadPriority (line 389) | ErrorApnsBadPriority = "BadPriority" constant ErrorApnsBadTopic (line 392) | ErrorApnsBadTopic = "BadTopic" constant ErrorApnsDeviceTokenNotForTopic (line 395) | ErrorApnsDeviceTokenNotForTopic = "DeviceTokenNotForTopic" constant ErrorApnsDuplicateHeaders (line 398) | ErrorApnsDuplicateHeaders = "DuplicateHeaders" constant ErrorApnsIdleTimeout (line 401) | ErrorApnsIdleTimeout = "IdleTimeout" constant ErrorApnsMissingDeviceToken (line 405) | ErrorApnsMissingDeviceToken = "MissingDeviceToken" constant ErrorApnsMissingTopic (line 410) | ErrorApnsMissingTopic = "MissingTopic" constant ErrorApnsPayloadEmpty (line 413) | ErrorApnsPayloadEmpty = "PayloadEmpty" constant ErrorApnsTopicDisallowed (line 416) | ErrorApnsTopicDisallowed = "TopicDisallowed" constant ErrorApnsBadCertificate (line 419) | ErrorApnsBadCertificate = "BadCertificate" constant ErrorApnsBadCertificateEnvironment (line 422) | ErrorApnsBadCertificateEnvironment = "BadCertificateEnvironment" constant ErrorApnsExpiredProviderToken (line 425) | ErrorApnsExpiredProviderToken = "ExpiredProviderToken" constant ErrorApnsForbidden (line 428) | ErrorApnsForbidden = "Forbidden" constant ErrorApnsInvalidProviderToken (line 431) | ErrorApnsInvalidProviderToken = "InvalidProviderToken" constant ErrorApnsMissingProviderToken (line 435) | ErrorApnsMissingProviderToken = "MissingProviderToken" constant ErrorApnsBadPath (line 438) | ErrorApnsBadPath = "BadPath" constant ErrorApnsMethodNotAllowed (line 441) | ErrorApnsMethodNotAllowed = "MethodNotAllowed" constant ErrorApnsUnregistered (line 444) | ErrorApnsUnregistered = "Unregistered" constant ErrorApnsPayloadTooLarge (line 448) | ErrorApnsPayloadTooLarge = "PayloadTooLarge" constant ErrorApnsTooManyProviderTokenUpdates (line 451) | ErrorApnsTooManyProviderTokenUpdates = "TooManyProviderTokenUpdates" constant ErrorApnsTooManyRequests (line 454) | ErrorApnsTooManyRequests = "TooManyRequests" constant ErrorApnsInternalServerError (line 457) | ErrorApnsInternalServerError = "InternalServerError" constant ErrorApnsServiceUnavailable (line 460) | ErrorApnsServiceUnavailable = "ServiceUnavailable" constant ErrorApnsShutdown (line 463) | ErrorApnsShutdown = "Shutdown" type GApiError (line 467) | type GApiError struct function DecodeGoogleApiError (line 478) | func DecodeGoogleApiError(err error) (decoded *GApiError, errs []error) { FILE: server/push/fcm/payload.go constant voipTimeToLive (line 22) | voipTimeToLive = 10 constant defaultTimeToLive (line 24) | defaultTimeToLive = 3600 function payloadToData (line 27) | func payloadToData(pl *push.Payload) (map[string]string, error) { function clonePayload (line 92) | func clonePayload(src map[string]string) map[string]string { function PrepareV1Notifications (line 100) | func PrepareV1Notifications(rcpt *push.Receipt, config *configType) ([]*... function DevicesForUser (line 213) | func DevicesForUser(uid t.Uid) []string { function ChannelsForUser (line 232) | func ChannelsForUser(uid t.Uid) []string { function androidNotificationConfig (line 241) | func androidNotificationConfig(what, topic string, data map[string]strin... function apnsShouldPresentAlert (line 303) | func apnsShouldPresentAlert(what, callStatus, isSilent string, config *c... function apnsNotificationConfig (line 307) | func apnsNotificationConfig(what, topic string, data map[string]string, ... FILE: server/push/fcm/push_fcm.go constant bufferSize (line 32) | bufferSize = 1024 constant pushBatchSize (line 35) | pushBatchSize = 100 constant subBatchSize (line 38) | subBatchSize = 1000 type Handler (line 42) | type Handler struct method Init (line 65) | func (Handler) Init(jsonconf json.RawMessage) (bool, error) { method IsReady (line 250) | func (Handler) IsReady() bool { method Push (line 256) | func (Handler) Push() chan<- *push.Receipt { method Channel (line 261) | func (Handler) Channel() chan<- *push.ChannelReq { method Stop (line 266) | func (Handler) Stop() { type configType (line 52) | type configType struct function sendFcmV1 (line 133) | func sendFcmV1(rcpt *push.Receipt, config *configType) { function processSubscription (line 171) | func processSubscription(req *push.ChannelReq) { function handleSubErrors (line 238) | func handleSubErrors(response *legacy.TopicManagementResponse, uid types... function init (line 270) | func init() { FILE: server/push/push.go constant ActMsg (line 15) | ActMsg = "msg" constant ActSub (line 17) | ActSub = "sub" constant ActRead (line 19) | ActRead = "read" constant MaxPayloadLength (line 23) | MaxPayloadLength = 128 type Recipient (line 26) | type Recipient struct type Receipt (line 38) | type Receipt struct type ChannelReq (line 50) | type ChannelReq struct type Payload (line 62) | type Payload struct type Handler (line 98) | type Handler interface type configType (line 116) | type configType struct function Register (line 124) | func Register(name string, hnd Handler) { function Init (line 139) | func Init(jsconfig json.RawMessage) ([]string, error) { function Push (line 161) | func Push(msg *Receipt) { function ChannelSub (line 180) | func ChannelSub(msg *ChannelReq) { function Stop (line 199) | func Stop() { FILE: server/push/stdout/push_stdout.go constant defaultBuffer (line 17) | defaultBuffer = 32 type stdoutPush (line 19) | type stdoutPush struct method Init (line 32) | func (stdoutPush) Init(jsonconf json.RawMessage) (bool, error) { method IsReady (line 75) | func (stdoutPush) IsReady() bool { method Push (line 81) | func (stdoutPush) Push() chan<- *push.Receipt { method Channel (line 87) | func (stdoutPush) Channel() chan<- *push.ChannelReq { method Stop (line 92) | func (stdoutPush) Stop() { type configType (line 26) | type configType struct function init (line 96) | func init() { FILE: server/push/tnpg/push_tnpg.go constant baseTargetAddress (line 26) | baseTargetAddress = "https://pushgw.tinode.co/" constant pushPath (line 27) | pushPath = "pushv1" constant subsPath (line 28) | subsPath = "sub" constant pushBatchSize (line 29) | pushBatchSize = 100 constant subBatchSize (line 30) | subBatchSize = 1000 constant bufferSize (line 31) | bufferSize = 1024 constant maxPooledPostBodyCap (line 36) | maxPooledPostBodyCap = 1 << 16 type Handler (line 51) | type Handler struct method Init (line 119) | func (Handler) Init(jsonconf json.RawMessage) (bool, error) { method IsReady (line 359) | func (Handler) IsReady() bool { method Push (line 365) | func (Handler) Push() chan<- *push.Receipt { method Channel (line 371) | func (Handler) Channel() chan<- *push.ChannelReq { method Stop (line 376) | func (Handler) Stop() { type configType (line 59) | type configType struct type subUnsubReq (line 68) | type subUnsubReq struct type tnpgResponse (line 76) | type tnpgResponse struct type batchResponse (line 89) | type batchResponse struct constant internalError (line 107) | internalError = "internal-error" constant invalidAPNSCredentials (line 108) | invalidAPNSCredentials = "invalid-apns-credentials" constant invalidArgument (line 109) | invalidArgument = "invalid-argument" constant messageRateExceeded (line 110) | messageRateExceeded = "message-rate-exceeded" constant mismatchedCredential (line 111) | mismatchedCredential = "mismatched-credential" constant registrationTokenNotRegistered (line 112) | registrationTokenNotRegistered = "registration-token-not-registered" constant serverUnavailable (line 113) | serverUnavailable = "server-unavailable" constant tooManyTopics (line 114) | tooManyTopics = "too-many-topics" constant unknownError (line 115) | unknownError = "unknown-error" function postMessage (line 172) | func postMessage(endpoint string, body any, config *configType) (*batchR... function sendPushes (line 237) | func sendPushes(rcpt *push.Receipt, config *configType) { function processSubscription (line 265) | func processSubscription(req *push.ChannelReq, config *configType) { function handlePushResponse (line 305) | func handlePushResponse(batch *batchResponse, messages []*fcmv1.Message,... function handleSubResponse (line 341) | func handleSubResponse(batch *batchResponse, req *push.ChannelReq, devic... function init (line 380) | func init() { FILE: server/ringhash/ringhash.go type Hash (line 16) | type Hash type elem (line 18) | type elem struct type sortable (line 23) | type sortable method Len (line 25) | func (k sortable) Len() int { return len(k) } method Swap (line 26) | func (k sortable) Swap(i, j int) { k[i], k[j] = k[j], k[i] } method Less (line 27) | func (k sortable) Less(i, j int) bool { type Ring (line 39) | type Ring struct method Len (line 65) | func (ring *Ring) Len() int { method Add (line 70) | func (ring *Ring) Add(keys ...string) { method Get (line 100) | func (ring *Ring) Get(key string) string { method Signature (line 126) | func (ring *Ring) Signature() string { method dump (line 130) | func (ring *Ring) dump() { function New (line 49) | func New(replicas int, fn Hash) *Ring { FILE: server/ringhash/ringhash_test.go function TestHashing (line 12) | func TestHashing(t *testing.T) { function TestConsistency (line 70) | func TestConsistency(t *testing.T) { function TestSignature (line 114) | func TestSignature(t *testing.T) { function BenchmarkGet8 (line 162) | func BenchmarkGet8(b *testing.B) { benchmarkGet(b, 8) } function BenchmarkGet32 (line 163) | func BenchmarkGet32(b *testing.B) { benchmarkGet(b, 32) } function BenchmarkGet128 (line 164) | func BenchmarkGet128(b *testing.B) { benchmarkGet(b, 128) } function BenchmarkGet512 (line 165) | func BenchmarkGet512(b *testing.B) { benchmarkGet(b, 512) } function benchmarkGet (line 167) | func benchmarkGet(b *testing.B, keycount int) { FILE: server/session.go constant sendQueueLimit (line 33) | sendQueueLimit = 128 constant deferredNotificationsTimeout (line 37) | deferredNotificationsTimeout = time.Second * 5 type SessionProto (line 42) | type SessionProto constant NONE (line 47) | NONE SessionProto = iota constant WEBSOCK (line 49) | WEBSOCK constant LPOLL (line 51) | LPOLL constant GRPC (line 53) | GRPC constant PROXY (line 55) | PROXY constant MULTIPLEX (line 57) | MULTIPLEX type Session (line 62) | type Session struct method addSub (line 179) | func (s *Session) addSub(topic string, sub *Subscription) { method getSub (line 196) | func (s *Session) getSub(topic string) *Subscription { method delSub (line 205) | func (s *Session) delSub(topic string) { method countSub (line 215) | func (s *Session) countSub() int { method unsubAll (line 224) | func (s *Session) unsubAll() { method isMultiplex (line 238) | func (s *Session) isMultiplex() bool { method isProxy (line 243) | func (s *Session) isProxy() bool { method isCluster (line 248) | func (s *Session) isCluster() bool { method scheduleClusterWriteLoop (line 252) | func (s *Session) scheduleClusterWriteLoop() { method supportsMessageBatching (line 259) | func (s *Session) supportsMessageBatching() bool { method queueOutBatch (line 272) | func (s *Session) queueOutBatch(msgs []*ServerComMessage) bool { method queueOut (line 314) | func (s *Session) queueOut(msg *ServerComMessage) bool { method queueOutBytes (line 360) | func (s *Session) queueOutBytes(data []byte) bool { method maybeScheduleClusterWriteLoop (line 377) | func (s *Session) maybeScheduleClusterWriteLoop() { method detachSession (line 387) | func (s *Session) detachSession(fromTopic string) { method stopSession (line 394) | func (s *Session) stopSession(data any) { method purgeChannels (line 399) | func (s *Session) purgeChannels() { method cleanUp (line 412) | func (s *Session) cleanUp(expired bool) { method dispatchRaw (line 431) | func (s *Session) dispatchRaw(raw []byte) { method dispatch (line 465) | func (s *Session) dispatch(msg *ClientComMessage) { method subscribe (line 617) | func (s *Session) subscribe(msg *ClientComMessage) { method leave (line 650) | func (s *Session) leave(msg *ClientComMessage) { method publish (line 685) | func (s *Session) publish(msg *ClientComMessage) { method hello (line 734) | func (s *Session) hello(msg *ClientComMessage) { method acc (line 882) | func (s *Session) acc(msg *ClientComMessage) { method login (line 920) | func (s *Session) login(msg *ClientComMessage) { method authSecretReset (line 997) | func (s *Session) authSecretReset(params []byte) error { method onLogin (line 1053) | func (s *Session) onLogin(msgID string, timestamp time.Time, rec *auth... method get (line 1105) | func (s *Session) get(msg *ClientComMessage) { method set (line 1143) | func (s *Session) set(msg *ClientComMessage) { method del (line 1194) | func (s *Session) del(msg *ClientComMessage) { method note (line 1252) | func (s *Session) note(msg *ClientComMessage) { method expandTopicName (line 1327) | func (s *Session) expandTopicName(msg *ClientComMessage) (string, *Ser... method serializeAndUpdateStats (line 1364) | func (s *Session) serializeAndUpdateStats(msg *ServerComMessage) any { method serialize (line 1372) | func (s *Session) serialize(msg *ServerComMessage) (int, any) { method onBackgroundTimer (line 1389) | func (s *Session) onBackgroundTimer() { type Subscription (line 164) | type Subscription struct FILE: server/session_test.go function test_makeSession (line 17) | func test_makeSession(uid types.Uid) *Session { function TestDispatchHello (line 27) | func TestDispatchHello(t *testing.T) { function verifyResponseCodes (line 80) | func verifyResponseCodes(r *responses, codes []int, t *testing.T) { function TestDispatchInvalidVersion (line 98) | func TestDispatchInvalidVersion(t *testing.T) { function TestDispatchUnsupportedVersion (line 121) | func TestDispatchUnsupportedVersion(t *testing.T) { function TestDispatchLogin (line 144) | func TestDispatchLogin(t *testing.T) { function TestDispatchSubscribe (line 222) | func TestDispatchSubscribe(t *testing.T) { function TestDispatchAlreadySubscribed (line 271) | func TestDispatchAlreadySubscribed(t *testing.T) { function TestDispatchSubscribeJoinChannelFull (line 299) | func TestDispatchSubscribeJoinChannelFull(t *testing.T) { function TestDispatchLeave (line 334) | func TestDispatchLeave(t *testing.T) { function TestDispatchLeaveUnsubMe (line 384) | func TestDispatchLeaveUnsubMe(t *testing.T) { function TestDispatchLeaveUnknownTopic (line 411) | func TestDispatchLeaveUnknownTopic(t *testing.T) { function TestDispatchLeaveUnsubFromUnknownTopic (line 437) | func TestDispatchLeaveUnsubFromUnknownTopic(t *testing.T) { function TestDispatchPublish (line 464) | func TestDispatchPublish(t *testing.T) { function TestDispatchPublishBroadcastChannelFull (line 514) | func TestDispatchPublishBroadcastChannelFull(t *testing.T) { function TestDispatchPublishMissingSubcription (line 549) | func TestDispatchPublishMissingSubcription(t *testing.T) { function TestDispatchGet (line 578) | func TestDispatchGet(t *testing.T) { function TestDispatchGetMalformedWhat (line 623) | func TestDispatchGetMalformedWhat(t *testing.T) { function TestDispatchGetMetaChannelFull (line 650) | func TestDispatchGetMetaChannelFull(t *testing.T) { function TestDispatchSet (line 685) | func TestDispatchSet(t *testing.T) { function TestDispatchSetMalformedWhat (line 737) | func TestDispatchSetMalformedWhat(t *testing.T) { function TestDispatchSetMetaChannelFull (line 763) | func TestDispatchSetMetaChannelFull(t *testing.T) { function TestDispatchDelMsg (line 802) | func TestDispatchDelMsg(t *testing.T) { function TestDispatchDelMalformedWhat (line 847) | func TestDispatchDelMalformedWhat(t *testing.T) { function TestDispatchDelMetaChanFull (line 872) | func TestDispatchDelMetaChanFull(t *testing.T) { function TestDispatchDelUnsubscribedSession (line 907) | func TestDispatchDelUnsubscribedSession(t *testing.T) { function TestDispatchNote (line 935) | func TestDispatchNote(t *testing.T) { function TestDispatchNoteBroadcastChanFull (line 987) | func TestDispatchNoteBroadcastChanFull(t *testing.T) { function TestDispatchNoteOnNonSubscribedTopic (line 1020) | func TestDispatchNoteOnNonSubscribedTopic(t *testing.T) { function TestDispatchAccNew (line 1046) | func TestDispatchAccNew(t *testing.T) { function TestDispatchNoMessage (line 1145) | func TestDispatchNoMessage(t *testing.T) { FILE: server/sessionstore.go type boundedWaitGroup (line 26) | type boundedWaitGroup struct method Add (line 35) | func (w *boundedWaitGroup) Add(delta int) { method Done (line 45) | func (w *boundedWaitGroup) Done() { method Wait (line 57) | func (w *boundedWaitGroup) Wait() { function newBoundedWaitGroup (line 31) | func newBoundedWaitGroup(capacity int) *boundedWaitGroup { type SessionStore (line 63) | type SessionStore struct method NewSession (line 76) | func (ss *SessionStore) NewSession(conn any, sid string) (*Session, in... method Get (line 163) | func (ss *SessionStore) Get(sid string) *Session { method Delete (line 180) | func (ss *SessionStore) Delete(s *Session) { method Range (line 193) | func (ss *SessionStore) Range(f func(sid string, s *Session) bool) { method Shutdown (line 205) | func (ss *SessionStore) Shutdown() { method EvictUser (line 223) | func (ss *SessionStore) EvictUser(uid types.Uid, skipSid string) { method NodeRestarted (line 247) | func (ss *SessionStore) NodeRestarted(nodeName string, fingerprint int... function NewSessionStore (line 265) | func NewSessionStore(lifetime time.Duration) *SessionStore { FILE: server/stats.go type histogram (line 26) | type histogram struct method addSample (line 33) | func (h *histogram) addSample(v float64) { method String (line 40) | func (h *histogram) String() string { type varUpdate (line 47) | type varUpdate struct function statsInit (line 57) | func statsInit(mux *http.ServeMux, path string) { function statsRegisterDbStats (line 78) | func statsRegisterDbStats() { function statsRegisterInt (line 85) | func statsRegisterInt(name string) { function statsRegisterHistogram (line 91) | func statsRegisterHistogram(name string, bounds []float64) { function statsSet (line 100) | func statsSet(name string, val int64) { function statsInc (line 110) | func statsInc(name string, val int) { function statsAddHistSample (line 120) | func statsAddHistSample(name string, val float64) { function statsShutdown (line 130) | func statsShutdown() { function statsUpdater (line 137) | func statsUpdater() { FILE: server/store/mock_store/mock_store.go type MockPersistentStorageInterface (line 21) | type MockPersistentStorageInterface struct method EXPECT (line 39) | func (m *MockPersistentStorageInterface) EXPECT() *MockPersistentStora... method Close (line 44) | func (m *MockPersistentStorageInterface) Close() error { method DbStats (line 58) | func (m *MockPersistentStorageInterface) DbStats() func() any { method GetAdapter (line 72) | func (m *MockPersistentStorageInterface) GetAdapter() adapter.Adapter { method GetAdapterName (line 86) | func (m *MockPersistentStorageInterface) GetAdapterName() string { method GetAdapterVersion (line 100) | func (m *MockPersistentStorageInterface) GetAdapterVersion() int { method GetAuthHandler (line 114) | func (m *MockPersistentStorageInterface) GetAuthHandler(name string) a... method GetAuthNames (line 128) | func (m *MockPersistentStorageInterface) GetAuthNames() []string { method GetDbVersion (line 142) | func (m *MockPersistentStorageInterface) GetDbVersion() int { method GetLogicalAuthHandler (line 156) | func (m *MockPersistentStorageInterface) GetLogicalAuthHandler(name st... method GetMediaHandler (line 170) | func (m *MockPersistentStorageInterface) GetMediaHandler() media.Handl... method GetUid (line 184) | func (m *MockPersistentStorageInterface) GetUid() types.Uid { method GetUidString (line 198) | func (m *MockPersistentStorageInterface) GetUidString() string { method GetValidator (line 212) | func (m *MockPersistentStorageInterface) GetValidator(name string) val... method InitDb (line 226) | func (m *MockPersistentStorageInterface) InitDb(jsonconf json.RawMessa... method IsOpen (line 240) | func (m *MockPersistentStorageInterface) IsOpen() bool { method Open (line 254) | func (m *MockPersistentStorageInterface) Open(workerId int, jsonconf j... method UpgradeDb (line 268) | func (m *MockPersistentStorageInterface) UpgradeDb(jsonconf json.RawMe... method UseMediaHandler (line 282) | func (m *MockPersistentStorageInterface) UseMediaHandler(name, config ... type MockPersistentStorageInterfaceMockRecorder (line 27) | type MockPersistentStorageInterfaceMockRecorder struct method Close (line 52) | func (mr *MockPersistentStorageInterfaceMockRecorder) Close() *gomock.... method DbStats (line 66) | func (mr *MockPersistentStorageInterfaceMockRecorder) DbStats() *gomoc... method GetAdapter (line 80) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapter() *go... method GetAdapterName (line 94) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterName()... method GetAdapterVersion (line 108) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterVersio... method GetAuthHandler (line 122) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthHandler(n... method GetAuthNames (line 136) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthNames() *... method GetDbVersion (line 150) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetDbVersion() *... method GetLogicalAuthHandler (line 164) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHa... method GetMediaHandler (line 178) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetMediaHandler(... method GetUid (line 192) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetUid() *gomock... method GetUidString (line 206) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetUidString() *... method GetValidator (line 220) | func (mr *MockPersistentStorageInterfaceMockRecorder) GetValidator(nam... method InitDb (line 234) | func (mr *MockPersistentStorageInterfaceMockRecorder) InitDb(jsonconf,... method IsOpen (line 248) | func (mr *MockPersistentStorageInterfaceMockRecorder) IsOpen() *gomock... method Open (line 262) | func (mr *MockPersistentStorageInterfaceMockRecorder) Open(workerId, j... method UpgradeDb (line 276) | func (mr *MockPersistentStorageInterfaceMockRecorder) UpgradeDb(jsonco... method UseMediaHandler (line 290) | func (mr *MockPersistentStorageInterfaceMockRecorder) UseMediaHandler(... function NewMockPersistentStorageInterface (line 32) | func NewMockPersistentStorageInterface(ctrl *gomock.Controller) *MockPer... type MockUsersPersistenceInterface (line 296) | type MockUsersPersistenceInterface struct method EXPECT (line 314) | func (m *MockUsersPersistenceInterface) EXPECT() *MockUsersPersistence... method AddAuthRecord (line 319) | func (m *MockUsersPersistenceInterface) AddAuthRecord(uid types.Uid, a... method ConfirmCred (line 333) | func (m *MockUsersPersistenceInterface) ConfirmCred(id types.Uid, meth... method Create (line 347) | func (m *MockUsersPersistenceInterface) Create(user *types.User, priva... method DelAuthRecords (line 362) | func (m *MockUsersPersistenceInterface) DelAuthRecords(uid types.Uid, ... method DelCred (line 376) | func (m *MockUsersPersistenceInterface) DelCred(id types.Uid, method, ... method Delete (line 390) | func (m *MockUsersPersistenceInterface) Delete(id types.Uid, hard bool... method FailCred (line 404) | func (m *MockUsersPersistenceInterface) FailCred(id types.Uid, method ... method FindOne (line 418) | func (m *MockUsersPersistenceInterface) FindOne(tag string) (string, e... method FindSubs (line 433) | func (m *MockUsersPersistenceInterface) FindSubs(caller types.Uid, pre... method Get (line 448) | func (m *MockUsersPersistenceInterface) Get(uid types.Uid) (*types.Use... method GetActiveCred (line 463) | func (m *MockUsersPersistenceInterface) GetActiveCred(id types.Uid, me... method GetAll (line 478) | func (m *MockUsersPersistenceInterface) GetAll(uid ...types.Uid) ([]ty... method GetAllCreds (line 497) | func (m *MockUsersPersistenceInterface) GetAllCreds(id types.Uid, meth... method GetAuthRecord (line 512) | func (m *MockUsersPersistenceInterface) GetAuthRecord(user types.Uid, ... method GetAuthUniqueRecord (line 530) | func (m *MockUsersPersistenceInterface) GetAuthUniqueRecord(scheme, un... method GetByCred (line 548) | func (m *MockUsersPersistenceInterface) GetByCred(method, value string... method GetChannels (line 563) | func (m *MockUsersPersistenceInterface) GetChannels(id types.Uid) ([]s... method GetOwnTopics (line 578) | func (m *MockUsersPersistenceInterface) GetOwnTopics(id types.Uid) ([]... method GetSubs (line 593) | func (m *MockUsersPersistenceInterface) GetSubs(id types.Uid) ([]types... method GetTopics (line 608) | func (m *MockUsersPersistenceInterface) GetTopics(id types.Uid, opts *... method GetTopicsAny (line 623) | func (m *MockUsersPersistenceInterface) GetTopicsAny(id types.Uid, opt... method GetUnreadCount (line 638) | func (m *MockUsersPersistenceInterface) GetUnreadCount(ids ...types.Ui... method GetUnvalidated (line 657) | func (m *MockUsersPersistenceInterface) GetUnvalidated(lastUpdatedBefo... method Update (line 672) | func (m *MockUsersPersistenceInterface) Update(uid types.Uid, update m... method UpdateAuthRecord (line 686) | func (m *MockUsersPersistenceInterface) UpdateAuthRecord(uid types.Uid... method UpdateLastSeen (line 700) | func (m *MockUsersPersistenceInterface) UpdateLastSeen(uid types.Uid, ... method UpdateState (line 714) | func (m *MockUsersPersistenceInterface) UpdateState(uid types.Uid, sta... method UpdateTags (line 728) | func (m *MockUsersPersistenceInterface) UpdateTags(uid types.Uid, add,... method UpsertCred (line 743) | func (m *MockUsersPersistenceInterface) UpsertCred(cred *types.Credent... type MockUsersPersistenceInterfaceMockRecorder (line 302) | type MockUsersPersistenceInterfaceMockRecorder struct method AddAuthRecord (line 327) | func (mr *MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord(uid... method ConfirmCred (line 341) | func (mr *MockUsersPersistenceInterfaceMockRecorder) ConfirmCred(id, m... method Create (line 356) | func (mr *MockUsersPersistenceInterfaceMockRecorder) Create(user, priv... method DelAuthRecords (line 370) | func (mr *MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords(ui... method DelCred (line 384) | func (mr *MockUsersPersistenceInterfaceMockRecorder) DelCred(id, metho... method Delete (line 398) | func (mr *MockUsersPersistenceInterfaceMockRecorder) Delete(id, hard i... method FailCred (line 412) | func (mr *MockUsersPersistenceInterfaceMockRecorder) FailCred(id, meth... method FindOne (line 427) | func (mr *MockUsersPersistenceInterfaceMockRecorder) FindOne(tag inter... method FindSubs (line 442) | func (mr *MockUsersPersistenceInterfaceMockRecorder) FindSubs(caller, ... method Get (line 457) | func (mr *MockUsersPersistenceInterfaceMockRecorder) Get(uid interface... method GetActiveCred (line 472) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetActiveCred(id,... method GetAll (line 491) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAll(uid ...int... method GetAllCreds (line 506) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAllCreds(id, m... method GetAuthRecord (line 524) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord(use... method GetAuthUniqueRecord (line 542) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueReco... method GetByCred (line 557) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetByCred(method,... method GetChannels (line 572) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetChannels(id in... method GetOwnTopics (line 587) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics(id i... method GetSubs (line 602) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetSubs(id interf... method GetTopics (line 617) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopics(id, opt... method GetTopicsAny (line 632) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny(id, ... method GetUnreadCount (line 651) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount(id... method GetUnvalidated (line 666) | func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnvalidated(la... method Update (line 680) | func (mr *MockUsersPersistenceInterfaceMockRecorder) Update(uid, updat... method UpdateAuthRecord (line 694) | func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord(... method UpdateLastSeen (line 708) | func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen(ui... method UpdateState (line 722) | func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateState(uid, ... method UpdateTags (line 737) | func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateTags(uid, a... method UpsertCred (line 752) | func (mr *MockUsersPersistenceInterfaceMockRecorder) UpsertCred(cred i... function NewMockUsersPersistenceInterface (line 307) | func NewMockUsersPersistenceInterface(ctrl *gomock.Controller) *MockUser... type MockTopicsPersistenceInterface (line 758) | type MockTopicsPersistenceInterface struct method EXPECT (line 776) | func (m *MockTopicsPersistenceInterface) EXPECT() *MockTopicsPersisten... method Create (line 781) | func (m *MockTopicsPersistenceInterface) Create(topic *types.Topic, ow... method CreateP2P (line 795) | func (m *MockTopicsPersistenceInterface) CreateP2P(initiator, invited ... method Delete (line 809) | func (m *MockTopicsPersistenceInterface) Delete(topic string, isChan, ... method Get (line 823) | func (m *MockTopicsPersistenceInterface) Get(topic string) (*types.Top... method GetSubs (line 838) | func (m *MockTopicsPersistenceInterface) GetSubs(topic string, opts *t... method GetSubsAny (line 853) | func (m *MockTopicsPersistenceInterface) GetSubsAny(topic string, opts... method GetUsers (line 868) | func (m *MockTopicsPersistenceInterface) GetUsers(topic string, opts *... method GetUsersAny (line 883) | func (m *MockTopicsPersistenceInterface) GetUsersAny(topic string, opt... method OwnerChange (line 898) | func (m *MockTopicsPersistenceInterface) OwnerChange(topic string, new... method Update (line 912) | func (m *MockTopicsPersistenceInterface) Update(topic string, update m... method UpdateSubCnt (line 926) | func (m *MockTopicsPersistenceInterface) UpdateSubCnt(topic string) er... type MockTopicsPersistenceInterfaceMockRecorder (line 764) | type MockTopicsPersistenceInterfaceMockRecorder struct method Create (line 789) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) Create(topic, ow... method CreateP2P (line 803) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) CreateP2P(initia... method Delete (line 817) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) Delete(topic, is... method Get (line 832) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) Get(topic interf... method GetSubs (line 847) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubs(topic, o... method GetSubsAny (line 862) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny(topic... method GetUsers (line 877) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsers(topic, ... method GetUsersAny (line 892) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny(topi... method OwnerChange (line 906) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) OwnerChange(topi... method Update (line 920) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) Update(topic, up... method UpdateSubCnt (line 934) | func (mr *MockTopicsPersistenceInterfaceMockRecorder) UpdateSubCnt(top... function NewMockTopicsPersistenceInterface (line 769) | func NewMockTopicsPersistenceInterface(ctrl *gomock.Controller) *MockTop... type MockSubsPersistenceInterface (line 940) | type MockSubsPersistenceInterface struct method EXPECT (line 958) | func (m *MockSubsPersistenceInterface) EXPECT() *MockSubsPersistenceIn... method Create (line 963) | func (m *MockSubsPersistenceInterface) Create(subs ...*types.Subscript... method Delete (line 981) | func (m *MockSubsPersistenceInterface) Delete(topic string, user types... method Get (line 995) | func (m *MockSubsPersistenceInterface) Get(topic string, user types.Ui... method Update (line 1010) | func (m *MockSubsPersistenceInterface) Update(topic string, user types... type MockSubsPersistenceInterfaceMockRecorder (line 946) | type MockSubsPersistenceInterfaceMockRecorder struct method Create (line 975) | func (mr *MockSubsPersistenceInterfaceMockRecorder) Create(subs ...int... method Delete (line 989) | func (mr *MockSubsPersistenceInterfaceMockRecorder) Delete(topic, user... method Get (line 1004) | func (mr *MockSubsPersistenceInterfaceMockRecorder) Get(topic, user, k... method Update (line 1018) | func (mr *MockSubsPersistenceInterfaceMockRecorder) Update(topic, user... function NewMockSubsPersistenceInterface (line 951) | func NewMockSubsPersistenceInterface(ctrl *gomock.Controller) *MockSubsP... type MockMessagesPersistenceInterface (line 1024) | type MockMessagesPersistenceInterface struct method EXPECT (line 1042) | func (m *MockMessagesPersistenceInterface) EXPECT() *MockMessagesPersi... method DeleteList (line 1047) | func (m *MockMessagesPersistenceInterface) DeleteList(topic string, de... method GetAll (line 1061) | func (m *MockMessagesPersistenceInterface) GetAll(topic string, forUse... method GetDeleted (line 1076) | func (m *MockMessagesPersistenceInterface) GetDeleted(topic string, fo... method Save (line 1092) | func (m *MockMessagesPersistenceInterface) Save(msg *types.Message, at... type MockMessagesPersistenceInterfaceMockRecorder (line 1030) | type MockMessagesPersistenceInterfaceMockRecorder struct method DeleteList (line 1055) | func (mr *MockMessagesPersistenceInterfaceMockRecorder) DeleteList(top... method GetAll (line 1070) | func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetAll(topic, ... method GetDeleted (line 1086) | func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetDeleted(top... method Save (line 1101) | func (mr *MockMessagesPersistenceInterfaceMockRecorder) Save(msg, atta... function NewMockMessagesPersistenceInterface (line 1035) | func NewMockMessagesPersistenceInterface(ctrl *gomock.Controller) *MockM... type MockDevicePersistenceInterface (line 1107) | type MockDevicePersistenceInterface struct method EXPECT (line 1125) | func (m *MockDevicePersistenceInterface) EXPECT() *MockDevicePersisten... method Delete (line 1130) | func (m *MockDevicePersistenceInterface) Delete(uid types.Uid, deviceI... method GetAll (line 1144) | func (m *MockDevicePersistenceInterface) GetAll(uid ...types.Uid) (map... method Update (line 1164) | func (m *MockDevicePersistenceInterface) Update(uid types.Uid, oldDevi... type MockDevicePersistenceInterfaceMockRecorder (line 1113) | type MockDevicePersistenceInterfaceMockRecorder struct method Delete (line 1138) | func (mr *MockDevicePersistenceInterfaceMockRecorder) Delete(uid, devi... method GetAll (line 1158) | func (mr *MockDevicePersistenceInterfaceMockRecorder) GetAll(uid ...in... method Update (line 1172) | func (mr *MockDevicePersistenceInterfaceMockRecorder) Update(uid, oldD... function NewMockDevicePersistenceInterface (line 1118) | func NewMockDevicePersistenceInterface(ctrl *gomock.Controller) *MockDev... type MockFilePersistenceInterface (line 1178) | type MockFilePersistenceInterface struct method EXPECT (line 1196) | func (m *MockFilePersistenceInterface) EXPECT() *MockFilePersistenceIn... method DeleteUnused (line 1201) | func (m *MockFilePersistenceInterface) DeleteUnused(olderThan time.Tim... method FinishUpload (line 1215) | func (m *MockFilePersistenceInterface) FinishUpload(fd *types.FileDef,... method Get (line 1230) | func (m *MockFilePersistenceInterface) Get(fid string) (*types.FileDef... method LinkAttachments (line 1245) | func (m *MockFilePersistenceInterface) LinkAttachments(topic string, m... method StartUpload (line 1259) | func (m *MockFilePersistenceInterface) StartUpload(fd *types.FileDef) ... type MockFilePersistenceInterfaceMockRecorder (line 1184) | type MockFilePersistenceInterfaceMockRecorder struct method DeleteUnused (line 1209) | func (mr *MockFilePersistenceInterfaceMockRecorder) DeleteUnused(older... method FinishUpload (line 1224) | func (mr *MockFilePersistenceInterfaceMockRecorder) FinishUpload(fd, s... method Get (line 1239) | func (mr *MockFilePersistenceInterfaceMockRecorder) Get(fid interface{... method LinkAttachments (line 1253) | func (mr *MockFilePersistenceInterfaceMockRecorder) LinkAttachments(to... method StartUpload (line 1267) | func (mr *MockFilePersistenceInterfaceMockRecorder) StartUpload(fd int... function NewMockFilePersistenceInterface (line 1189) | func NewMockFilePersistenceInterface(ctrl *gomock.Controller) *MockFileP... type MockPersistentCacheInterface (line 1273) | type MockPersistentCacheInterface struct method EXPECT (line 1291) | func (m *MockPersistentCacheInterface) EXPECT() *MockPersistentCacheIn... method Delete (line 1296) | func (m *MockPersistentCacheInterface) Delete(key string) error { method Expire (line 1310) | func (m *MockPersistentCacheInterface) Expire(keyPrefix string, olderT... method Get (line 1324) | func (m *MockPersistentCacheInterface) Get(key string) (string, error) { method Upsert (line 1339) | func (m *MockPersistentCacheInterface) Upsert(key, value string, failO... type MockPersistentCacheInterfaceMockRecorder (line 1279) | type MockPersistentCacheInterfaceMockRecorder struct method Delete (line 1304) | func (mr *MockPersistentCacheInterfaceMockRecorder) Delete(key interfa... method Expire (line 1318) | func (mr *MockPersistentCacheInterfaceMockRecorder) Expire(keyPrefix, ... method Get (line 1333) | func (mr *MockPersistentCacheInterfaceMockRecorder) Get(key interface{... method Upsert (line 1347) | func (mr *MockPersistentCacheInterfaceMockRecorder) Upsert(key, value,... function NewMockPersistentCacheInterface (line 1284) | func NewMockPersistentCacheInterface(ctrl *gomock.Controller) *MockPersi... FILE: server/store/store.go type configType (line 27) | type configType struct function openAdapter (line 38) | func openAdapter(workerId int, jsonconf json.RawMessage) error { type PersistentStorageInterface (line 88) | type PersistentStorageInterface interface type storeObj (line 112) | type storeObj struct method Open (line 118) | func (storeObj) Open(workerId int, jsonconf json.RawMessage) error { method Close (line 127) | func (storeObj) Close() error { method IsOpen (line 136) | func (storeObj) IsOpen() bool { method GetAdapter (line 145) | func (storeObj) GetAdapter() adapter.Adapter { method GetAdapterName (line 150) | func (storeObj) GetAdapterName() string { method GetAdapterVersion (line 159) | func (storeObj) GetAdapterVersion() int { method GetDbVersion (line 168) | func (storeObj) GetDbVersion() int { method InitDb (line 181) | func (s storeObj) InitDb(jsonconf json.RawMessage, reset bool) error { method UpgradeDb (line 193) | func (s storeObj) UpgradeDb(jsonconf json.RawMessage) error { method GetUid (line 217) | func (storeObj) GetUid() types.Uid { method GetUidString (line 222) | func (storeObj) GetUidString() string { method DbStats (line 245) | func (s storeObj) DbStats() func() any { method GetAuthNames (line 826) | func (s storeObj) GetAuthNames() []string { method GetAuthHandler (line 851) | func (storeObj) GetAuthHandler(name string) auth.AuthHandler { method GetLogicalAuthHandler (line 857) | func (storeObj) GetLogicalAuthHandler(name string) auth.AuthHandler { method GetValidator (line 931) | func (storeObj) GetValidator(name string) validate.Validator { method GetMediaHandler (line 995) | func (storeObj) GetMediaHandler() media.Handler { method UseMediaHandler (line 1000) | func (storeObj) UseMediaHandler(name, config string) error { function RegisterAdapter (line 204) | func RegisterAdapter(a adapter.Adapter) { function DecodeUid (line 229) | func DecodeUid(uid types.Uid) int64 { function EncodeUid (line 237) | func EncodeUid(id int64) types.Uid { type UsersPersistenceInterface (line 253) | type UsersPersistenceInterface interface type usersMapper (line 286) | type usersMapper struct method Create (line 292) | func (usersMapper) Create(user *types.User, private any) (*types.User,... method GetAuthRecord (line 333) | func (usersMapper) GetAuthRecord(user types.Uid, scheme string) (strin... method GetAuthUniqueRecord (line 349) | func (usersMapper) GetAuthUniqueRecord(scheme, unique string) (types.U... method AddAuthRecord (line 354) | func (usersMapper) AddAuthRecord(uid types.Uid, authLvl auth.Level, sc... method UpdateAuthRecord (line 361) | func (usersMapper) UpdateAuthRecord(uid types.Uid, authLvl auth.Level,... method DelAuthRecords (line 368) | func (usersMapper) DelAuthRecords(uid types.Uid, scheme string) error { method Get (line 373) | func (usersMapper) Get(uid types.Uid) (*types.User, error) { method GetAll (line 378) | func (usersMapper) GetAll(uid ...types.Uid) ([]types.User, error) { method GetByCred (line 383) | func (usersMapper) GetByCred(method, value string) (types.Uid, error) { method Delete (line 388) | func (usersMapper) Delete(id types.Uid, hard bool) error { method UpdateLastSeen (line 393) | func (usersMapper) UpdateLastSeen(uid types.Uid, userAgent string, whe... method Update (line 398) | func (usersMapper) Update(uid types.Uid, update map[string]any) error { method UpdateTags (line 406) | func (usersMapper) UpdateTags(uid types.Uid, add, remove, reset []stri... method UpdateState (line 411) | func (usersMapper) UpdateState(uid types.Uid, state types.ObjState) er... method GetSubs (line 420) | func (usersMapper) GetSubs(id types.Uid) ([]types.Subscription, error) { method FindSubs (line 428) | func (usersMapper) FindSubs(caller types.Uid, prefPrefix string, requi... method FindOne (line 437) | func (usersMapper) FindOne(tag string) (string, error) { method GetTopics (line 442) | func (usersMapper) GetTopics(id types.Uid, opts *types.QueryOpt) ([]ty... method GetTopicsAny (line 448) | func (usersMapper) GetTopicsAny(id types.Uid, opts *types.QueryOpt) ([... method GetOwnTopics (line 453) | func (usersMapper) GetOwnTopics(id types.Uid) ([]string, error) { method GetChannels (line 458) | func (usersMapper) GetChannels(id types.Uid) ([]string, error) { method UpsertCred (line 463) | func (usersMapper) UpsertCred(cred *types.Credential) (bool, error) { method ConfirmCred (line 469) | func (usersMapper) ConfirmCred(id types.Uid, method string) error { method FailCred (line 474) | func (usersMapper) FailCred(id types.Uid, method string) error { method GetActiveCred (line 479) | func (usersMapper) GetActiveCred(id types.Uid, method string) (*types.... method GetAllCreds (line 484) | func (usersMapper) GetAllCreds(id types.Uid, method string, validatedO... method DelCred (line 489) | func (usersMapper) DelCred(id types.Uid, method, value string) error { method GetUnreadCount (line 494) | func (usersMapper) GetUnreadCount(ids ...types.Uid) (map[types.Uid]int... method GetUnvalidated (line 500) | func (usersMapper) GetUnvalidated(lastUpdatedBefore time.Time, limit i... type TopicsPersistenceInterface (line 505) | type TopicsPersistenceInterface interface type topicsMapper (line 520) | type topicsMapper struct method Create (line 526) | func (topicsMapper) Create(topic *types.Topic, owner types.Uid, privat... method CreateP2P (line 551) | func (topicsMapper) CreateP2P(initiator, invited *types.Subscription) ... method Get (line 561) | func (topicsMapper) Get(topic string) (*types.Topic, error) { method GetUsers (line 567) | func (topicsMapper) GetUsers(topic string, opts *types.QueryOpt) ([]ty... method GetUsersAny (line 573) | func (topicsMapper) GetUsersAny(topic string, opts *types.QueryOpt) ([... method GetSubs (line 579) | func (topicsMapper) GetSubs(topic string, opts *types.QueryOpt) ([]typ... method GetSubsAny (line 585) | func (topicsMapper) GetSubsAny(topic string, opts *types.QueryOpt) ([]... method UpdateSubCnt (line 590) | func (topicsMapper) UpdateSubCnt(topic string) error { method Update (line 595) | func (topicsMapper) Update(topic string, update map[string]any) error { method OwnerChange (line 603) | func (topicsMapper) OwnerChange(topic string, newOwner types.Uid) error { method Delete (line 608) | func (topicsMapper) Delete(topic string, isChan, hard bool) error { type SubsPersistenceInterface (line 613) | type SubsPersistenceInterface interface type subsMapper (line 621) | type subsMapper struct method Create (line 627) | func (subsMapper) Create(subs ...*types.Subscription) error { method Get (line 651) | func (subsMapper) Get(topic string, user types.Uid, keepDeleted bool) ... method Update (line 656) | func (subsMapper) Update(topic string, user types.Uid, update map[stri... method Delete (line 663) | func (subsMapper) Delete(topic string, user types.Uid) error { type MessagesPersistenceInterface (line 668) | type MessagesPersistenceInterface interface type messagesMapper (line 676) | type messagesMapper struct method Save (line 682) | func (messagesMapper) Save(msg *types.Message, attachmentURLs []string... method DeleteList (line 731) | func (messagesMapper) DeleteList(topic string, delID int, forUser type... method GetAll (line 771) | func (messagesMapper) GetAll(topic string, forUser types.Uid, opt *typ... method GetDeleted (line 776) | func (messagesMapper) GetDeleted(topic string, forUser types.Uid, opt ... function RegisterAuthScheme (line 806) | func RegisterAuthScheme(name string, handler auth.AuthHandler) { function InitAuthLogicalNames (line 869) | func InitAuthLogicalNames(config json.RawMessage) error { function RegisterValidator (line 915) | func RegisterValidator(name string, v validate.Validator) { type DevicePersistenceInterface (line 937) | type DevicePersistenceInterface interface type deviceMapper (line 944) | type deviceMapper struct method Update (line 950) | func (deviceMapper) Update(uid types.Uid, oldDeviceID string, dev *typ... method GetAll (line 967) | func (deviceMapper) GetAll(uid ...types.Uid) (map[types.Uid][]types.De... method Delete (line 972) | func (deviceMapper) Delete(uid types.Uid, deviceID string) error { function RegisterMediaHandler (line 980) | func RegisterMediaHandler(name string, mh media.Handler) { type FilePersistenceInterface (line 1009) | type FilePersistenceInterface interface type fileMapper (line 1024) | type fileMapper struct method StartUpload (line 1030) | func (fileMapper) StartUpload(fd *types.FileDef) error { method FinishUpload (line 1036) | func (fileMapper) FinishUpload(fd *types.FileDef, success bool, size i... method Get (line 1041) | func (fileMapper) Get(fid string) (*types.FileDef, error) { method DeleteUnused (line 1046) | func (fileMapper) DeleteUnused(olderThan time.Time, limit int) error { method LinkAttachments (line 1060) | func (fileMapper) LinkAttachments(topic string, msgId types.Uid, attac... type PersistentCacheInterface (line 1081) | type PersistentCacheInterface interface type pcacheMapper (line 1093) | type pcacheMapper struct method Get (line 1098) | func (pcacheMapper) Get(key string) (string, error) { method Upsert (line 1103) | func (pcacheMapper) Upsert(key string, value string, failOnDuplicate b... method Delete (line 1108) | func (pcacheMapper) Delete(key string) error { method Expire (line 1113) | func (pcacheMapper) Expire(keyPrefix string, olderThan time.Time) error { function SetTestUidGenerator (line 1117) | func SetTestUidGenerator(g types.UidGenerator) { function init (line 1121) | func init() { FILE: server/store/types/types.go type StoreError (line 19) | type StoreError method Error (line 22) | func (s StoreError) Error() string { constant ErrInternal (line 28) | ErrInternal = StoreError("internal") constant ErrMalformed (line 30) | ErrMalformed = StoreError("malformed") constant ErrFailed (line 32) | ErrFailed = StoreError("failed") constant ErrDuplicate (line 34) | ErrDuplicate = StoreError("duplicate value") constant ErrUnsupported (line 36) | ErrUnsupported = StoreError("unsupported") constant ErrExpired (line 38) | ErrExpired = StoreError("expired") constant ErrPolicy (line 40) | ErrPolicy = StoreError("policy") constant ErrCredentials (line 42) | ErrCredentials = StoreError("credentials") constant ErrUserNotFound (line 44) | ErrUserNotFound = StoreError("user not found") constant ErrTopicNotFound (line 46) | ErrTopicNotFound = StoreError("topic not found") constant ErrNotFound (line 48) | ErrNotFound = StoreError("not found") constant ErrPermissionDenied (line 50) | ErrPermissionDenied = StoreError("denied") constant ErrInvalidResponse (line 52) | ErrInvalidResponse = StoreError("invalid response") constant ErrRedirected (line 54) | ErrRedirected = StoreError("redirected") type Uid (line 58) | type Uid method IsZero (line 73) | func (uid Uid) IsZero() bool { method Compare (line 78) | func (uid Uid) Compare(u2 Uid) int { method MarshalBinary (line 88) | func (uid Uid) MarshalBinary() ([]byte, error) { method UnmarshalBinary (line 95) | func (uid *Uid) UnmarshalBinary(b []byte) error { method UnmarshalText (line 104) | func (uid *Uid) UnmarshalText(src []byte) error { method MarshalText (line 121) | func (uid *Uid) MarshalText() ([]byte, error) { method MarshalJSON (line 133) | func (uid *Uid) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 139) | func (uid *Uid) UnmarshalJSON(b []byte) error { method String (line 150) | func (uid Uid) String() string { method String32 (line 156) | func (uid Uid) String32() string { method UserId (line 178) | func (uid Uid) UserId() string { method FndName (line 183) | func (uid Uid) FndName() string { method SlfName (line 188) | func (uid Uid) SlfName() string { method PrefixId (line 193) | func (uid Uid) PrefixId(prefix string) string { method P2PName (line 295) | func (uid Uid) P2PName(u2 Uid) string { constant ZeroUid (line 61) | ZeroUid Uid = 0 constant NullValue (line 64) | NullValue = "\u2421" constant uidBase64Unpadded (line 68) | uidBase64Unpadded = 11 constant p2pBase64Unpadded (line 69) | p2pBase64Unpadded = 22 function ParseUid (line 162) | func ParseUid(s string) Uid { function ParseUid32 (line 169) | func ParseUid32(s string) Uid { function ParseUserId (line 201) | func ParseUserId(s string) Uid { function GrpToChn (line 212) | func GrpToChn(grp string) string { function IsChannel (line 226) | func IsChannel(name string) bool { function ChnToGrp (line 233) | func ChnToGrp(chn string) string { type UidSlice (line 245) | type UidSlice method find (line 247) | func (us UidSlice) find(uid Uid) (int, bool) { method Add (line 262) | func (us *UidSlice) Add(uid Uid) bool { method Rem (line 275) | func (us *UidSlice) Rem(uid Uid) bool { method Contains (line 289) | func (us UidSlice) Contains(uid Uid) bool { function ParseP2P (line 316) | func ParseP2P(p2p string) (uid1, uid2 Uid, err error) { function P2PNameForUser (line 344) | func P2PNameForUser(uid Uid, p2p string) (string, error) { type ObjHeader (line 356) | type ObjHeader struct method Uid (line 366) | func (h *ObjHeader) Uid() Uid { method SetUid (line 374) | func (h *ObjHeader) SetUid(uid Uid) { method InitTimes (line 388) | func (h *ObjHeader) InitTimes() { method MergeTimes (line 396) | func (h *ObjHeader) MergeTimes(h2 *ObjHeader) { function TimeNow (line 380) | func TimeNow() time.Time { constant TimeFormatRFC3339 (line 385) | TimeFormatRFC3339 = "2006-01-02T15:04:05.999" type StringSlice (line 408) | type StringSlice method Scan (line 411) | func (ss *StringSlice) Scan(val any) error { method Value (line 419) | func (ss StringSlice) Value() (driver.Value, error) { type ObjState (line 425) | type ObjState method String (line 439) | func (os ObjState) String() string { method MarshalJSON (line 471) | func (os ObjState) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 476) | func (os *ObjState) UnmarshalJSON(b []byte) error { method Scan (line 489) | func (os *ObjState) Scan(val any) error { method Value (line 499) | func (os ObjState) Value() (driver.Value, error) { constant StateOK (line 429) | StateOK ObjState = 0 constant StateSuspended (line 431) | StateSuspended ObjState = 10 constant StateDeleted (line 433) | StateDeleted ObjState = 20 constant StateUndefined (line 435) | StateUndefined ObjState = 30 function NewObjState (line 454) | func NewObjState(in string) (ObjState, error) { type User (line 504) | type User struct type AccessMode (line 534) | type AccessMode method MarshalText (line 586) | func (m AccessMode) MarshalText() ([]byte, error) { method UnmarshalText (line 644) | func (m *AccessMode) UnmarshalText(b []byte) error { method String (line 657) | func (m AccessMode) String() string { method MarshalJSON (line 666) | func (m AccessMode) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 676) | func (m *AccessMode) UnmarshalJSON(b []byte) error { method Scan (line 686) | func (m *AccessMode) Scan(val any) error { method Value (line 694) | func (m AccessMode) Value() (driver.Value, error) { method BetterThan (line 703) | func (grant AccessMode) BetterThan(want AccessMode) bool { method BetterEqual (line 708) | func (grant AccessMode) BetterEqual(want AccessMode) bool { method Delta (line 714) | func (o AccessMode) Delta(n AccessMode) string { method ApplyMutation (line 738) | func (m *AccessMode) ApplyMutation(mutation string) error { method ApplyDelta (line 751) | func (m *AccessMode) ApplyDelta(delta string) error { method IsJoiner (line 790) | func (m AccessMode) IsJoiner() bool { method IsOwner (line 795) | func (m AccessMode) IsOwner() bool { method IsApprover (line 800) | func (m AccessMode) IsApprover() bool { method IsAdmin (line 805) | func (m AccessMode) IsAdmin() bool { method IsSharer (line 810) | func (m AccessMode) IsSharer() bool { method IsWriter (line 815) | func (m AccessMode) IsWriter() bool { method IsReader (line 820) | func (m AccessMode) IsReader() bool { method IsPresencer (line 825) | func (m AccessMode) IsPresencer() bool { method IsDeleter (line 830) | func (m AccessMode) IsDeleter() bool { method IsZero (line 835) | func (m AccessMode) IsZero() bool { method IsInvalid (line 840) | func (m AccessMode) IsInvalid() bool { method IsDefined (line 846) | func (m AccessMode) IsDefined() bool { constant ModeJoin (line 538) | ModeJoin AccessMode = 1 << iota constant ModeRead (line 539) | ModeRead constant ModeWrite (line 540) | ModeWrite constant ModePres (line 541) | ModePres constant ModeApprove (line 542) | ModeApprove constant ModeShare (line 543) | ModeShare constant ModeDelete (line 544) | ModeDelete constant ModeOwner (line 545) | ModeOwner constant ModeUnset (line 546) | ModeUnset constant ModeNone (line 548) | ModeNone AccessMode = 0 constant ModeCPublic (line 551) | ModeCPublic AccessMode = ModeJoin | ModeRead | ModeWrite | ModePres | Mo... constant ModeCMeFnd (line 553) | ModeCMeFnd AccessMode = ModeJoin | ModePres | ModeShare constant ModeCSelf (line 555) | ModeCSelf = ModeJoin | ModeRead | ModeWrite | ModeDelete | ModeOwner constant ModeCFull (line 557) | ModeCFull AccessMode = ModeJoin | ModeRead | ModeWrite | ModePres | Mode... constant ModeCP2P (line 559) | ModeCP2P AccessMode = ModeJoin | ModeRead | ModeWrite | ModePres | ModeA... constant ModeCP2PD (line 561) | ModeCP2PD AccessMode = ModeJoin | ModeRead | ModeWrite | ModePres | Mode... constant ModeCAuth (line 563) | ModeCAuth AccessMode = ModeCP2P | ModeCPublic constant ModeCReadOnly (line 565) | ModeCReadOnly = ModeJoin | ModeRead constant ModeCSys (line 567) | ModeCSys = ModeJoin | ModeRead | ModeWrite | ModePres | ModeDelete constant ModeCChnWriter (line 569) | ModeCChnWriter = ModeRead | ModeWrite | ModePres | ModeShare constant ModeCChnReader (line 571) | ModeCChnReader = ModeJoin | ModeRead | ModePres constant ModeCAdmin (line 574) | ModeCAdmin = ModeOwner | ModeApprove constant ModeCSharer (line 576) | ModeCSharer = ModeCAdmin | ModeShare constant ModeInvalid (line 579) | ModeInvalid AccessMode = 0x100000 constant ModeBitmask (line 582) | ModeBitmask AccessMode = ModeJoin | ModeRead | ModeWrite | ModePres | Mo... function ParseAcs (line 606) | func ParseAcs(b []byte) (AccessMode, error) { type DefaultAccess (line 851) | type DefaultAccess struct method Scan (line 858) | func (da *DefaultAccess) Scan(val any) error { method Value (line 863) | func (da DefaultAccess) Value() (driver.Value, error) { type Credential (line 868) | type Credential struct type LastSeenUA (line 885) | type LastSeenUA struct type Subscription (line 893) | type Subscription struct method SetPublic (line 947) | func (s *Subscription) SetPublic(pub any) { method GetPublic (line 952) | func (s *Subscription) GetPublic() any { method SetTrusted (line 957) | func (s *Subscription) SetTrusted(tstd any) { method GetTrusted (line 962) | func (s *Subscription) GetTrusted() any { method SetWith (line 967) | func (s *Subscription) SetWith(with string) { method GetWith (line 972) | func (s *Subscription) GetWith() string { method GetTouchedAt (line 977) | func (s *Subscription) GetTouchedAt() time.Time { method SetTouchedAt (line 982) | func (s *Subscription) SetTouchedAt(touchedAt time.Time) { method LastModified (line 989) | func (s *Subscription) LastModified() time.Time { method GetSeqId (line 997) | func (s *Subscription) GetSeqId() int { method SetSeqId (line 1002) | func (s *Subscription) SetSeqId(id int) { method GetSubCnt (line 1007) | func (s *Subscription) GetSubCnt() int { method SetSubCnt (line 1012) | func (s *Subscription) SetSubCnt(cnt int) { method GetLastSeen (line 1017) | func (s *Subscription) GetLastSeen() *time.Time { method GetUserAgent (line 1025) | func (s *Subscription) GetUserAgent() string { method SetLastSeenAndUA (line 1033) | func (s *Subscription) SetLastSeenAndUA(when *time.Time, ua string) { method SetDefaultAccess (line 1045) | func (s *Subscription) SetDefaultAccess(auth, anon AccessMode) { method GetDefaultAccess (line 1050) | func (s *Subscription) GetDefaultAccess() *DefaultAccess { method GetState (line 1055) | func (s *Subscription) GetState() ObjState { method SetState (line 1060) | func (s *Subscription) SetState(state ObjState) { method SetDummy (line 1065) | func (s *Subscription) SetDummy(dummy bool) { method IsDummy (line 1070) | func (s *Subscription) IsDummy() bool { type Contact (line 1075) | type Contact struct type perUserData (line 1083) | type perUserData struct type KVMap (line 1090) | type KVMap method Scan (line 1093) | func (kvm *KVMap) Scan(val any) error { method Value (line 1102) | func (kvm KVMap) Value() (driver.Value, error) { type Topic (line 1107) | type Topic struct method GiveAccess (line 1148) | func (t *Topic) GiveAccess(uid Uid, want, given AccessMode) { method SetPrivate (line 1168) | func (t *Topic) SetPrivate(uid Uid, private any) { method GetPrivate (line 1181) | func (t *Topic) GetPrivate(uid Uid) (private any) { method GetAccess (line 1194) | func (t *Topic) GetAccess(uid Uid) (mode AccessMode) { type SoftDelete (line 1207) | type SoftDelete struct type Message (line 1213) | type Message struct type Range (line 1231) | type Range struct type RangeSorter (line 1237) | type RangeSorter method Len (line 1240) | func (rs RangeSorter) Len() int { method Swap (line 1245) | func (rs RangeSorter) Swap(i, j int) { method Less (line 1250) | func (rs RangeSorter) Less(i, j int) bool { method Normalize (line 1263) | func (rs RangeSorter) Normalize() RangeSorter { function SliceToRanges (line 1292) | func SliceToRanges(in []int) []Range { type DelMessage (line 1319) | type DelMessage struct method GetNewerThan (line 1331) | func (dm *DelMessage) GetNewerThan() *time.Time { method SetNewerThan (line 1336) | func (dm *DelMessage) SetNewerThan(t time.Time) { type QueryOpt (line 1341) | type QueryOpt struct type TopicCat (line 1356) | type TopicCat constant TopicCatMe (line 1360) | TopicCatMe TopicCat = iota constant TopicCatFnd (line 1362) | TopicCatFnd constant TopicCatP2P (line 1364) | TopicCatP2P constant TopicCatGrp (line 1366) | TopicCatGrp constant TopicCatSys (line 1368) | TopicCatSys constant TopicCatSlf (line 1370) | TopicCatSlf function GetTopicCat (line 1374) | func GetTopicCat(name string) TopicCat { function IsEphemeralTopic (line 1395) | func IsEphemeralTopic(topic string) bool { type DeviceDef (line 1402) | type DeviceDef struct constant UploadStarted (line 1416) | UploadStarted = iota constant UploadCompleted (line 1418) | UploadCompleted constant UploadFailed (line 1420) | UploadFailed constant UploadDeleted (line 1422) | UploadDeleted type FileDef (line 1426) | type FileDef struct function FlattenDoubleSlice (line 1443) | func FlattenDoubleSlice(data [][]string) []string { FILE: server/store/types/uidgen.go type UidGenerator (line 14) | type UidGenerator struct method Init (line 22) | func (ug *UidGenerator) Init(workerID uint, key []byte) error { method Get (line 38) | func (ug *UidGenerator) Get() Uid { method GetStr (line 49) | func (ug *UidGenerator) GetStr() string { method DecodeUid (line 81) | func (ug *UidGenerator) DecodeUid(uid Uid) int64 { method EncodeInt64 (line 96) | func (ug *UidGenerator) EncodeInt64(val int64) Uid { function getIDBuffer (line 58) | func getIDBuffer(ug *UidGenerator) ([]byte, error) { FILE: server/store/types/uidgen_test.go function TestUidGeneratorInit (line 9) | func TestUidGeneratorInit(t *testing.T) { function TestUidGeneratorInitWithInvalidKey (line 48) | func TestUidGeneratorInitWithInvalidKey(t *testing.T) { function TestUidGeneratorGet (line 65) | func TestUidGeneratorGet(t *testing.T) { function TestUidGeneratorGetWithUninitializedGenerator (line 103) | func TestUidGeneratorGetWithUninitializedGenerator(t *testing.T) { function TestUidGeneratorGetStr (line 113) | func TestUidGeneratorGetStr(t *testing.T) { function TestUidGeneratorGetStrWithUninitializedGenerator (line 156) | func TestUidGeneratorGetStrWithUninitializedGenerator(t *testing.T) { function TestUidGeneratorDecodeUid (line 166) | func TestUidGeneratorDecodeUid(t *testing.T) { function TestUidGeneratorEncodeInt64 (line 194) | func TestUidGeneratorEncodeInt64(t *testing.T) { function TestUidGeneratorEncodeDecodeRoundtrip (line 234) | func TestUidGeneratorEncodeDecodeRoundtrip(t *testing.T) { function TestUidGeneratorConcurrency (line 264) | func TestUidGeneratorConcurrency(t *testing.T) { function TestUidGeneratorPerformance (line 305) | func TestUidGeneratorPerformance(t *testing.T) { function TestUidGeneratorDifferentWorkerIds (line 340) | func TestUidGeneratorDifferentWorkerIds(t *testing.T) { function TestUidGeneratorInitErrorConditions (line 378) | func TestUidGeneratorInitErrorConditions(t *testing.T) { function TestUidGeneratorInitKeyValidation (line 398) | func TestUidGeneratorInitKeyValidation(t *testing.T) { function TestUidGeneratorInitValidKeys (line 422) | func TestUidGeneratorInitValidKeys(t *testing.T) { function TestUidGeneratorInitPartialFailure (line 447) | func TestUidGeneratorInitPartialFailure(t *testing.T) { function TestUidGeneratorInitMultipleWorkers (line 473) | func TestUidGeneratorInitMultipleWorkers(t *testing.T) { function TestUidGeneratorInitIdempotency (line 503) | func TestUidGeneratorInitIdempotency(t *testing.T) { function TestUidGeneratorInitConcurrent (line 545) | func TestUidGeneratorInitConcurrent(t *testing.T) { function TestUidGeneratorInitBoundaryWorkerIDs (line 588) | func TestUidGeneratorInitBoundaryWorkerIDs(t *testing.T) { function BenchmarkUidGeneratorGet (line 624) | func BenchmarkUidGeneratorGet(b *testing.B) { function BenchmarkUidGeneratorGetStr (line 638) | func BenchmarkUidGeneratorGetStr(b *testing.B) { function BenchmarkUidGeneratorDecodeUid (line 652) | func BenchmarkUidGeneratorDecodeUid(b *testing.B) { function BenchmarkUidGeneratorEncodeInt64 (line 669) | func BenchmarkUidGeneratorEncodeInt64(b *testing.B) { FILE: server/topic.go type Topic (line 25) | type Topic struct method run (line 218) | func (t *Topic) run(hub *Hub) { method getPerUserAcs (line 227) | func (t *Topic) getPerUserAcs(uid types.Uid) (types.AccessMode, types.... method passesPresenceFilters (line 238) | func (t *Topic) passesPresenceFilters(pres *MsgServerPres, uid types.U... method userIsReader (line 247) | func (t *Topic) userIsReader(uid types.Uid) bool { method prepareBroadcastableMessage (line 253) | func (t *Topic) prepareBroadcastableMessage(msg *ServerComMessage, uid... method computePerUserAcsUnion (line 285) | func (t *Topic) computePerUserAcsUnion() { method unregisterSession (line 308) | func (t *Topic) unregisterSession(msg *ClientComMessage) { method registerSession (line 341) | func (t *Topic) registerSession(msg *ClientComMessage) { method handleMetaGet (line 373) | func (t *Topic) handleMetaGet(msg *ClientComMessage, asUid types.Uid, ... method handleMetaSet (line 412) | func (t *Topic) handleMetaSet(msg *ClientComMessage, asUid types.Uid, ... method handleMetaDel (line 443) | func (t *Topic) handleMetaDel(msg *ClientComMessage, asUid types.Uid, ... method handleMeta (line 463) | func (t *Topic) handleMeta(msg *ClientComMessage) { method handleSessionUpdate (line 488) | func (t *Topic) handleSessionUpdate(upd *sessionUpdate, currentUA *str... method handleUATimerEvent (line 502) | func (t *Topic) handleUATimerEvent(currentUA string) { method handleTopicTimeout (line 511) | func (t *Topic) handleTopicTimeout(hub *Hub, currentUA string, uaTimer... method handleTopicTermination (line 524) | func (t *Topic) handleTopicTermination(sd *shutDown) { method runLocal (line 568) | func (t *Topic) runLocal(hub *Hub) { method handleClientMsg (line 621) | func (t *Topic) handleClientMsg(msg *ClientComMessage) { method handleServerMsg (line 633) | func (t *Topic) handleServerMsg(msg *ServerComMessage) { method handleSubscription (line 650) | func (t *Topic) handleSubscription(msg *ClientComMessage) error { method handleLeaveRequest (line 722) | func (t *Topic) handleLeaveRequest(msg *ClientComMessage, sess *Sessio... method sessToForeground (line 865) | func (t *Topic) sessToForeground(sess *Session) { method sendImmediateSubNotifications (line 892) | func (t *Topic) sendImmediateSubNotifications(asUid types.Uid, acs *Ms... method sendSubNotifications (line 958) | func (t *Topic) sendSubNotifications(asUid types.Uid, sid, userAgent s... method saveAndBroadcastMessage (line 999) | func (t *Topic) saveAndBroadcastMessage(msg *ClientComMessage, asUid t... method handlePubBroadcast (line 1092) | func (t *Topic) handlePubBroadcast(msg *ClientComMessage) { method handleNoteBroadcast (line 1139) | func (t *Topic) handleNoteBroadcast(msg *ClientComMessage) { method handlePresence (line 1273) | func (t *Topic) handlePresence(msg *ServerComMessage) { method broadcastToSessions (line 1287) | func (t *Topic) broadcastToSessions(msg *ServerComMessage) { method subscriptionReply (line 1376) | func (t *Topic) subscriptionReply(asChan bool, msg *ClientComMessage) ... method thisUserSub (line 1506) | func (t *Topic) thisUserSub(sess *Session, pkt *ClientComMessage, asUi... method anotherUserSub (line 1881) | func (t *Topic) anotherUserSub(sess *Session, asUid, target types.Uid,... method replyGetDesc (line 2082) | func (t *Topic) replyGetDesc(sess *Session, asUid types.Uid, _ bool, o... method replySetDesc (line 2204) | func (t *Topic) replySetDesc(sess *Session, asUid types.Uid, asChan bool, method replyGetSub (line 2398) | func (t *Topic) replyGetSub(sess *Session, asUid types.Uid, authLevel ... method replySetSub (line 2718) | func (t *Topic) replySetSub(sess *Session, pkt *ClientComMessage, asCh... method replyGetData (line 2768) | func (t *Topic) replyGetData(sess *Session, asUid types.Uid, asChan bo... method replyGetTags (line 2830) | func (t *Topic) replyGetTags(sess *Session, asUid types.Uid, msg *Clie... method replySetTags (line 2903) | func (t *Topic) replySetTags(sess *Session, asUid types.Uid, msg *Clie... method replyGetCreds (line 2999) | func (t *Topic) replyGetCreds(sess *Session, asUid types.Uid, msg *Cli... method replySetCred (line 3037) | func (t *Topic) replySetCred(sess *Session, asUid types.Uid, authLevel... method replyGetAux (line 3074) | func (t *Topic) replyGetAux(sess *Session, asUid types.Uid, msg *Clien... method replySetAux (line 3101) | func (t *Topic) replySetAux(sess *Session, asUid types.Uid, msg *Clien... method replyGetDel (line 3131) | func (t *Topic) replyGetDel(sess *Session, asUid types.Uid, req *MsgGe... method replyDelMsg (line 3173) | func (t *Topic) replyDelMsg(sess *Session, asUid types.Uid, asChan boo... method replyDelTopic (line 3298) | func (t *Topic) replyDelTopic(sess *Session, asUid types.Uid, msg *Cli... method replyDelCred (line 3309) | func (t *Topic) replyDelCred(sess *Session, asUid types.Uid, authLvl a... method replyDelSub (line 3340) | func (t *Topic) replyDelSub(sess *Session, asUid types.Uid, msg *Clien... method replyLeaveUnsub (line 3431) | func (t *Topic) replyLeaveUnsub(sess *Session, msg *ClientComMessage, ... method evictUser (line 3519) | func (t *Topic) evictUser(uid types.Uid, unsub bool, skip string) { method notifySubChange (line 3579) | func (t *Topic) notifySubChange(uid, actor types.Uid, isChan bool, method mostRecentSession (line 3684) | func (t *Topic) mostRecentSession() *Session { method statusChangeBits (line 3710) | func (t *Topic) statusChangeBits(bits int32, set bool) { method markLoaded (line 3729) | func (t *Topic) markLoaded() { method markPaused (line 3735) | func (t *Topic) markPaused(pause bool) { method markDeleted (line 3740) | func (t *Topic) markDeleted() { method markReadOnly (line 3745) | func (t *Topic) markReadOnly(readOnly bool) { method isInactive (line 3750) | func (t *Topic) isInactive() bool { method isReadOnly (line 3754) | func (t *Topic) isReadOnly() bool { method isLoaded (line 3758) | func (t *Topic) isLoaded() bool { method isDeleted (line 3762) | func (t *Topic) isDeleted() bool { method original (line 3767) | func (t *Topic) original(uid types.Uid) string { method p2pOtherUser (line 3785) | func (t *Topic) p2pOtherUser(uid types.Uid) types.Uid { method fndGetPublic (line 3801) | func (t *Topic) fndGetPublic(sess *Session) string { method fndSetPublic (line 3818) | func (t *Topic) fndSetPublic(sess *Session, public any) bool { method fndRemovePublic (line 3849) | func (t *Topic) fndRemovePublic(sess *Session) { method accessFor (line 3862) | func (t *Topic) accessFor(authLvl auth.Level) types.AccessMode { method subsCount (line 3869) | func (t *Topic) subsCount() int { method addSession (line 3883) | func (t *Topic) addSession(sess *Session, asUid types.Uid, isChanSub b... method remSession (line 3918) | func (t *Topic) remSession(sess *Session, asUid types.Uid) (*perSessio... method isOnline (line 3952) | func (t *Topic) isOnline() bool { method verifyChannelAccess (line 3967) | func (t *Topic) verifyChannelAccess(asTopic string) (bool, error) { type perUserData (line 138) | type perUserData struct type perSubsData (line 167) | type perSubsData struct type perSessionData (line 176) | type perSessionData struct constant StopNone (line 189) | StopNone = iota constant StopShutdown (line 191) | StopShutdown constant StopDeleted (line 193) | StopDeleted constant StopRehashing (line 195) | StopRehashing type shutDown (line 199) | type shutDown struct type sessionUpdate (line 208) | type sessionUpdate struct constant topicStatusLoaded (line 3699) | topicStatusLoaded = 0x1 constant topicStatusPaused (line 3701) | topicStatusPaused = 0x2 constant topicStatusMarkedDeleted (line 3704) | topicStatusMarkedDeleted = 0x10 constant topicStatusReadOnly (line 3706) | topicStatusReadOnly = 0x20 function topicCat (line 3978) | func topicCat(name string) types.TopicCat { function genTopicName (line 3984) | func genTopicName() string { function topicNameForUser (line 3990) | func topicNameForUser(name string, uid types.Uid, isChan bool) string { function calculateUnreadInRanges (line 4010) | func calculateUnreadInRanges(readID, lastID int, ranges []types.Range) i... FILE: server/topic_proxy.go method runProxy (line 17) | func (t *Topic) runProxy(hub *Hub) { method handleProxyLeaveRequest (line 122) | func (t *Topic) handleProxyLeaveRequest(msg *ClientComMessage, killTimer... method proxyMasterResponse (line 176) | func (t *Topic) proxyMasterResponse(msg *ClusterResp, killTimer *time.Ti... method handleProxyBroadcast (line 255) | func (t *Topic) handleProxyBroadcast(msg *ServerComMessage) { method proxyCtrlBroadcast (line 269) | func (t *Topic) proxyCtrlBroadcast(msg *ServerComMessage) { method updateAcsFromPresMsg (line 288) | func (t *Topic) updateAcsFromPresMsg(pres *MsgServerPres) { FILE: server/topic_test.go type responses (line 19) | type responses struct type TopicTestHelper (line 24) | type TopicTestHelper struct method finish (line 54) | func (b *TopicTestHelper) finish() { method newSession (line 68) | func (b *TopicTestHelper) newSession(sid string, uid types.Uid) (*Sess... method setUp (line 82) | func (b *TopicTestHelper) setUp(t *testing.T, numUsers int, cat types.... method tearDown (line 161) | func (b *TopicTestHelper) tearDown() { method testWriteLoop (line 170) | func (s *Session) testWriteLoop(results *responses, wg *sync.WaitGroup) { method testHubLoop (line 177) | func (h *Hub) testHubLoop(t *testing.T, results map[string][]*ServerComM... function TestHandleBroadcastDataP2P (line 196) | func TestHandleBroadcastDataP2P(t *testing.T) { function TestHandleBroadcastCall (line 279) | func TestHandleBroadcastCall(t *testing.T) { function TestHandleBroadcastDataGroup (line 389) | func TestHandleBroadcastDataGroup(t *testing.T) { function TestHandleBroadcastDataMissingWritePermission (line 497) | func TestHandleBroadcastDataMissingWritePermission(t *testing.T) { function TestHandleBroadcastDataDbError (line 551) | func TestHandleBroadcastDataDbError(t *testing.T) { function TestHandleBroadcastDataInactiveTopic (line 606) | func TestHandleBroadcastDataInactiveTopic(t *testing.T) { function TestHandleBroadcastInfoP2P (line 655) | func TestHandleBroadcastInfoP2P(t *testing.T) { function TestHandleBroadcastInfoBogusNotification (line 765) | func TestHandleBroadcastInfoBogusNotification(t *testing.T) { function TestHandleBroadcastInfoFilterOutRecvWithoutRPermission (line 813) | func TestHandleBroadcastInfoFilterOutRecvWithoutRPermission(t *testing.T) { function TestHandleBroadcastInfoFilterOutKpWithoutWPermission (line 866) | func TestHandleBroadcastInfoFilterOutKpWithoutWPermission(t *testing.T) { function TestHandleBroadcastInfoDuplicatedRead (line 919) | func TestHandleBroadcastInfoDuplicatedRead(t *testing.T) { function TestHandleBroadcastInfoDbError (line 972) | func TestHandleBroadcastInfoDbError(t *testing.T) { function TestHandleBroadcastInfoInvalidChannelAccess (line 1022) | func TestHandleBroadcastInfoInvalidChannelAccess(t *testing.T) { function TestHandleBroadcastInfoChannelProcessing (line 1078) | func TestHandleBroadcastInfoChannelProcessing(t *testing.T) { function TestHandleBroadcastPresMe (line 1159) | func TestHandleBroadcastPresMe(t *testing.T) { function TestHandleBroadcastPresInactiveTopic (line 1219) | func TestHandleBroadcastPresInactiveTopic(t *testing.T) { constant NoSub (line 1266) | NoSub = 0 constant ExistingSubEnabled (line 1267) | ExistingSubEnabled = 1 constant ExistingSubDisabled (line 1268) | ExistingSubDisabled = 2 function NoChangeInStatusTest (line 1271) | func NoChangeInStatusTest(t *testing.T, subscriptionStatus int, what str... function TestHandleBroadcastPresUnkn (line 1324) | func TestHandleBroadcastPresUnkn(t *testing.T) { function TestHandleBroadcastPresNone (line 1328) | func TestHandleBroadcastPresNone(t *testing.T) { function TestHandleBroadcastPresRedundantUpdate (line 1332) | func TestHandleBroadcastPresRedundantUpdate(t *testing.T) { function TestHandleBroadcastPresNewSub (line 1341) | func TestHandleBroadcastPresNewSub(t *testing.T) { function TestHandleBroadcastPresUnknownSub (line 1345) | func TestHandleBroadcastPresUnknownSub(t *testing.T) { function TestReplyGetDescInvalidOpts (line 1349) | func TestReplyGetDescInvalidOpts(t *testing.T) { function registerSessionVerifyOutputs (line 1388) | func registerSessionVerifyOutputs(t *testing.T, sessionOutput *responses... function TestRegisterSessionMe (line 1410) | func TestRegisterSessionMe(t *testing.T) { function TestRegisterSessionInactiveTopic (line 1470) | func TestRegisterSessionInactiveTopic(t *testing.T) { function TestRegisterSessionUserSpecifiedInSetMessage (line 1519) | func TestRegisterSessionUserSpecifiedInSetMessage(t *testing.T) { function TestRegisterSessionInvalidWantStrInSetMessage (line 1572) | func TestRegisterSessionInvalidWantStrInSetMessage(t *testing.T) { function TestRegisterSessionMaxSubscriberCountExceeded (line 1625) | func TestRegisterSessionMaxSubscriberCountExceeded(t *testing.T) { function TestRegisterSessionLowAuthLevelWithSysTopic (line 1681) | func TestRegisterSessionLowAuthLevelWithSysTopic(t *testing.T) { function TestRegisterSessionNewChannelGetSubDbError (line 1733) | func TestRegisterSessionNewChannelGetSubDbError(t *testing.T) { function TestRegisterSessionCreateSubFailed (line 1789) | func TestRegisterSessionCreateSubFailed(t *testing.T) { function TestRegisterSessionAsChanUserNotChanSubcriber (line 1843) | func TestRegisterSessionAsChanUserNotChanSubcriber(t *testing.T) { function TestRegisterSessionOwnerBansHimself (line 1896) | func TestRegisterSessionOwnerBansHimself(t *testing.T) { function TestRegisterSessionInvalidOwnershipTransfer (line 1957) | func TestRegisterSessionInvalidOwnershipTransfer(t *testing.T) { function TestRegisterSessionMetadataUpdateFails (line 2018) | func TestRegisterSessionMetadataUpdateFails(t *testing.T) { function TestRegisterSessionOwnerChangeDbCallFails (line 2082) | func TestRegisterSessionOwnerChangeDbCallFails(t *testing.T) { function TestUnregisterSessionSimple (line 2145) | func TestUnregisterSessionSimple(t *testing.T) { function TestUnregisterSessionInactiveTopic (line 2211) | func TestUnregisterSessionInactiveTopic(t *testing.T) { function TestUnregisterSessionUnsubscribe (line 2269) | func TestUnregisterSessionUnsubscribe(t *testing.T) { function TestUnregisterSessionOwnerCannotUnsubscribe (line 2382) | func TestUnregisterSessionOwnerCannotUnsubscribe(t *testing.T) { function TestUnregisterSessionUnsubDeleteCallFails (line 2429) | func TestUnregisterSessionUnsubDeleteCallFails(t *testing.T) { function TestHandleMetaChanErr (line 2479) | func TestHandleMetaChanErr(t *testing.T) { function TestHandleMetaGet (line 2513) | func TestHandleMetaGet(t *testing.T) { type supersetOf (line 2570) | type supersetOf struct method Matches (line 2576) | func (s *supersetOf) Matches(x any) bool { method String (line 2594) | func (s *supersetOf) String() string { function SupersetOf (line 2572) | func SupersetOf(subset map[string]string) gomock.Matcher { function TestHandleMetaSetDescMePublicPrivate (line 2598) | func TestHandleMetaSetDescMePublicPrivate(t *testing.T) { function TestHandleSessionUpdateSessToForeground (line 2672) | func TestHandleSessionUpdateSessToForeground(t *testing.T) { function TestHandleSessionUpdateUserAgent (line 2698) | func TestHandleSessionUpdateUserAgent(t *testing.T) { function TestHandleUATimerEvent (line 2729) | func TestHandleUATimerEvent(t *testing.T) { function TestHandleTopicTimeout (line 2777) | func TestHandleTopicTimeout(t *testing.T) { function TestHandleTopicTermination (line 2833) | func TestHandleTopicTermination(t *testing.T) { function TestHandleBroadcastDataWithAttachments (line 2872) | func TestHandleBroadcastDataWithAttachments(t *testing.T) { function TestHandleBroadcastInfoChannelWithMultipleReaders (line 2920) | func TestHandleBroadcastInfoChannelWithMultipleReaders(t *testing.T) { function TestRegisterSessionWithComplexModeString (line 2978) | func TestRegisterSessionWithComplexModeString(t *testing.T) { function TestHandleBroadcastDataGroupWithMutedUser (line 3034) | func TestHandleBroadcastDataGroupWithMutedUser(t *testing.T) { function TestUnregisterSessionWithPendingCall (line 3084) | func TestUnregisterSessionWithPendingCall(t *testing.T) { function TestReplyDelMsgHardDelete (line 3178) | func TestReplyDelMsgHardDelete(t *testing.T) { function TestReplyDelMsgUpdatesUnreadCounters (line 3244) | func TestReplyDelMsgUpdatesUnreadCounters(t *testing.T) { function TestCalculateUnreadInRanges (line 3309) | func TestCalculateUnreadInRanges(t *testing.T) { function TestMain (line 3379) | func TestMain(m *testing.M) { FILE: server/user.go constant unreadUpdateIOPending (line 20) | unreadUpdateIOPending = -1 constant unreadUpdateError (line 22) | unreadUpdateError = -2 function replyCreateUser (line 26) | func replyCreateUser(s *Session, msg *ClientComMessage, rec *auth.Rec) { function replyUpdateUser (line 226) | func replyUpdateUser(s *Session, msg *ClientComMessage, rec *auth.Rec) { function updateUserAuth (line 336) | func updateUserAuth(msg *ClientComMessage, user *types.User, _ *auth.Rec... function addCreds (line 364) | func addCreds(uid types.Uid, creds []MsgCredClient, extraTags []string, function validatedCreds (line 408) | func validatedCreds(uid types.Uid, authLvl auth.Level, creds []MsgCredCl... function deleteCred (line 486) | func deleteCred(uid types.Uid, authLvl auth.Level, cred *MsgCredClient) ... function changeUserState (line 556) | func changeUserState(s *Session, uid types.Uid, user *types.User, msg *C... function replyDelUser (line 593) | func replyDelUser(s *Session, msg *ClientComMessage) { function userGetState (line 688) | func userGetState(uid types.Uid) (types.ObjState, error) { function userChannelsSubUnsub (line 700) | func userChannelsSubUnsub(uid types.Uid, deviceID string, sub bool) { type UserCacheReq (line 709) | type UserCacheReq struct type userCacheEntry (line 731) | type userCacheEntry struct type bufferedUpdate (line 737) | type bufferedUpdate struct type ioResult (line 742) | type ioResult struct type pendingReceipt (line 748) | type pendingReceipt struct type pendingReceiptsQueue (line 759) | type pendingReceiptsQueue method Len (line 762) | func (pq pendingReceiptsQueue) Len() int { return len(pq) } method Less (line 764) | func (pq pendingReceiptsQueue) Less(i, j int) bool { method Swap (line 769) | func (pq pendingReceiptsQueue) Swap(i, j int) { method Push (line 775) | func (pq *pendingReceiptsQueue) Push(x any) { method Pop (line 782) | func (pq *pendingReceiptsQueue) Pop() any { method fix (line 792) | func (pq *pendingReceiptsQueue) fix(index int) { function usersInit (line 797) | func usersInit() { function usersShutdown (line 804) | func usersShutdown() { function usersUpdateUnread (line 810) | func usersUpdateUnread(uid types.Uid, val int, inc bool) { function usersRegisterUser (line 829) | func usersRegisterUser(uid types.Uid, add bool) { function usersRemoveUser (line 849) | func usersRemoveUser(uid types.Uid) { function usersRegisterTopic (line 871) | func usersRegisterTopic(t *Topic, add bool) { function usersRequestFromCluster (line 913) | func usersRequestFromCluster(req *UserCacheReq) { function userUpdater (line 927) | func userUpdater() { function garbageCollectUsers (line 1168) | func garbageCollectUsers(period time.Duration, blockSize, minAccountAgeH... FILE: server/utils.go constant nullValue (line 39) | nullValue = "\u2421" function rangeDeserialize (line 42) | func rangeDeserialize(in []types.Range) []MsgRange { function rangeSerialize (line 56) | func rangeSerialize(in []MsgRange) []types.Range { function stringSliceDelta (line 74) | func stringSliceDelta(rold, rnew []string) (added, removed, intersection... function normalizeCredentials (line 119) | func normalizeCredentials(creds []MsgCredClient, valueRequired bool) []M... function credentialMethods (line 139) | func credentialMethods(creds []MsgCredClient) []string { function msgOpts2storeOpts (line 148) | func msgOpts2storeOpts(req *MsgGetOpts) *types.QueryOpt { function isNullValue (line 165) | func isNullValue(i any) bool { function decodeStoreError (line 172) | func decodeStoreError(err error, id string, ts time.Time, params map[str... function decodeStoreErrorExplicitTs (line 176) | func decodeStoreErrorExplicitTs(err error, id, topic string, serverTs, i... function selectAccessMode (line 228) | func selectAccessMode(authLvl auth.Level, anonMode, authMode, rootMode t... function getDefaultAccess (line 244) | func getDefaultAccess(cat types.TopicCat, authUser, isChan bool) types.A... function parseTopicAccess (line 269) | func parseTopicAccess(acs *MsgDefaultAcsMode, defAuth, defAnon types.Acc... function parseVersionPart (line 285) | func parseVersionPart(vers string) int { function parseVersion (line 308) | func parseVersion(vers string) int { function base10Version (line 330) | func base10Version(hex int) int64 { function versionToString (line 337) | func versionToString(vers int) string { function filterTags (line 350) | func filterTags(tags []string, namespaces map[string]bool) []string { function rewriteTag (line 377) | func rewriteTag(orig, countryCode string) []string { function rewriteTagSlice (line 404) | func rewriteTagSlice(tags []string, countryCode string) []string { function restrictedTagsEqual (line 417) | func restrictedTagsEqual(oldTags, newTags []string, namespaces map[strin... function normalizeTags (line 440) | func normalizeTags(src []string, maxTags int) types.StringSlice { function validateTag (line 488) | func validateTag(tag string) (string, string) { function hasDuplicateNamespaceTags (line 506) | func hasDuplicateNamespaceTags(src []string, uniqueNS string) bool { function parseSearchQuery (line 529) | func parseSearchQuery(query string) ([]string, []string, error) { function versionCompare (line 686) | func versionCompare(v1, v2 int) int { function max (line 690) | func max(a, b int) int { function truncateStringIfTooLong (line 698) | func truncateStringIfTooLong(s string) string { function toAbsolutePath (line 707) | func toAbsolutePath(base, path string) string { function platformFromUA (line 715) | func platformFromUA(ua string) string { function parseTLSConfig (line 737) | func parseTLSConfig(tlsEnabled bool, jsconfig json.RawMessage) (*tls.Con... function mergeInterfaces (line 802) | func mergeInterfaces(dst, src any) (any, bool) { function mergeMaps (line 835) | func mergeMaps(dst, src map[string]any) (map[string]any, bool) { function copyMap (line 880) | func copyMap(src map[string]any) map[string]any { function netListener (line 888) | func netListener(addr string) (net.Listener, error) { function isUnixAddr (line 897) | func isUnixAddr(addr string) bool { function isRoutableIP (line 904) | func isRoutableIP(ipStr string) bool { FILE: server/utils_test.go function slicesEqual (line 11) | func slicesEqual(expected, gotten []string) bool { function expectSlicesEqual (line 23) | func expectSlicesEqual(t *testing.T, name string, expected, gotten []str... function TestStringSliceDelta (line 31) | func TestStringSliceDelta(t *testing.T) { function TestParseSearchQuery (line 68) | func TestParseSearchQuery(t *testing.T) { function TestNormalizeTags (line 178) | func TestNormalizeTags(t *testing.T) { function TestRestrictedTagsEqual (line 211) | func TestRestrictedTagsEqual(t *testing.T) { function TestIsNullValue (line 246) | func TestIsNullValue(t *testing.T) { function TestParseVersion (line 277) | func TestParseVersion(t *testing.T) { function TestMergeMaps (line 348) | func TestMergeMaps(t *testing.T) { function TestMergeInterfaces (line 400) | func TestMergeInterfaces(t *testing.T) { function TestFilterTags (line 477) | func TestFilterTags(t *testing.T) { function TestHasDuplicateNamespaceTags (line 503) | func TestHasDuplicateNamespaceTags(t *testing.T) { FILE: server/validate/email/validate.go type validator (line 33) | type validator struct method Init (line 95) | func (v *validator) Init(jsonconf string) error { method IsInitialized (line 218) | func (v *validator) IsInitialized() bool { method PreCheck (line 224) | func (v *validator) PreCheck(cred string, _ map[string]any) (string, e... method Request (line 255) | func (v *validator) Request(user t.Uid, email, lang, resp string, tmpT... method ResetSecret (line 313) | func (v *validator) ResetSecret(email, scheme, lang string, code []byt... method Check (line 349) | func (v *validator) Check(user t.Uid, resp string) (string, error) { method Delete (line 381) | func (v *validator) Delete(user t.Uid) error { method Remove (line 386) | func (v *validator) Remove(user t.Uid, value string) error { method TempAuthScheme (line 391) | func (v *validator) TempAuthScheme() (string, error) { method sendMail (line 396) | func (v *validator) sendMail(rcpt []string, msg []byte) error { method send (line 449) | func (v *validator) send(to string, content map[string]string) error { constant validatorName (line 79) | validatorName = "email" constant defaultMaxRetries (line 81) | defaultMaxRetries = 3 constant defaultPort (line 82) | defaultPort = "25" constant maxEmailLength (line 85) | maxEmailLength = 128 constant defaultCodeLength (line 88) | defaultCodeLength = 6 function isTemplateValid (line 511) | func isTemplateValid(templ *textt.Template) error { type loginAuth (line 521) | type loginAuth struct method Start (line 526) | func (a *loginAuth) Start(server *smtp.ServerInfo) (string, []byte, er... method Next (line 531) | func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) { function randomBoundary (line 545) | func randomBoundary() string { function init (line 551) | func init() { FILE: server/validate/tel/twilio.go type twilioConfig (line 10) | type twilioConfig struct function twilioInit (line 17) | func twilioInit(jsonconf json.RawMessage) error { function twilioSend (line 32) | func twilioSend(from, to, body string) error { FILE: server/validate/tel/validate.go type validator (line 21) | type validator struct method Init (line 57) | func (v *validator) Init(jsonconf string) error { method IsInitialized (line 119) | func (v *validator) IsInitialized() bool { method PreCheck (line 125) | func (*validator) PreCheck(cred string, params map[string]any) (string... method Request (line 149) | func (v *validator) Request(user t.Uid, phone, lang, resp string, tmpT... method ResetSecret (line 195) | func (v *validator) ResetSecret(phone, scheme, lang string, code []byt... method Check (line 218) | func (v *validator) Check(user t.Uid, resp string) (string, error) { method Delete (line 250) | func (*validator) Delete(user t.Uid) error { method Remove (line 255) | func (*validator) Remove(user t.Uid, value string) error { method TempAuthScheme (line 260) | func (v *validator) TempAuthScheme() (string, error) { method send (line 265) | func (v *validator) send(to, body string) error { constant validatorName (line 47) | validatorName = "tel" constant defaultMaxRetries (line 49) | defaultMaxRetries = 3 constant defaultCodeLength (line 52) | defaultCodeLength = 6 constant defaultSender (line 54) | defaultSender = "Tinode" function init (line 276) | func init() { FILE: server/validate/validator.go type Validator (line 17) | type Validator interface function ValidateHostURL (line 61) | func ValidateHostURL(origUrl string) (string, error) { function ExecuteTemplate (line 81) | func ExecuteTemplate(template *template.Template, parts []string, params... function ResolveTemplatePath (line 105) | func ResolveTemplatePath(path string) (string, error) { function ReadTemplateFile (line 118) | func ReadTemplateFile(pathTempl *template.Template, lang string) (*templ... FILE: tinode-db/gendb.go function genDb (line 18) | func genDb(data *Data, p2pDel bool) { function getCreatedTime (line 414) | func getCreatedTime(delta string) time.Time { type photoStruct (line 423) | type photoStruct struct type card (line 428) | type card struct function parsePublic (line 434) | func parsePublic(public *theCard, path string) *card { FILE: tinode-db/main.go type configType (line 25) | type configType struct type theCard (line 30) | type theCard struct type tPrivate (line 36) | type tPrivate struct type tTrusted (line 40) | type tTrusted struct method IsZero (line 45) | func (t tTrusted) IsZero() bool { type DefAccess (line 50) | type DefAccess struct type User (line 77) | type User struct type GroupTopic (line 102) | type GroupTopic struct type GroupSub (line 125) | type GroupSub struct type P2PUser (line 146) | type P2PUser struct type P2PSub (line 154) | type P2PSub struct type Data (line 162) | type Data struct function genTopicName (line 173) | func genTopicName() string { function getPassword (line 178) | func getPassword(n int) string { function main (line 194) | func main() { FILE: tn-cli/client.py function handle_ctrl (line 22) | def handle_ctrl(ctrl): function handle_login (line 42) | def handle_login(params): function save_cookie (line 59) | def save_cookie(params): function read_cookie (line 72) | def read_cookie(): function pop_from_output_queue (line 84) | def pop_from_output_queue(): function gen_message (line 93) | def gen_message(scheme, secret, args): function run (line 198) | def run(args, schema, secret): FILE: tn-cli/commands.py function set_macros_module (line 37) | def set_macros_module(m): function pack_extra (line 44) | def pack_extra(cmd): function getVar (line 50) | def getVar(path): function derefVals (line 78) | def derefVals(cmd): function hiMsg (line 89) | def hiMsg(id, background, user_agent, lib_version): function accMsg (line 96) | def accMsg(id, cmd, ignored): function loginMsg (line 127) | def loginMsg(id, cmd, args): function subMsg (line 155) | def subMsg(id, cmd, ignored): function leaveMsg (line 174) | def leaveMsg(id, cmd, ignored): function pubMsg (line 182) | def pubMsg(id, cmd, ignored): function getMsg (line 210) | def getMsg(id, cmd, ignored): function setMsg (line 231) | def setMsg(id, cmd, ignored): function delMsg (line 258) | def delMsg(id, cmd, ignored): function noteMsg (line 366) | def noteMsg(id, cmd, ignored): function upload (line 405) | def upload(id, cmd, args): function fileUpload (line 432) | def fileUpload(id, cmd, args): function fileDownload (line 460) | def fileDownload(id, cmd, args): function parse_cmd (line 485) | def parse_cmd(parts): function parse_input (line 602) | def parse_input(cmd): function serialize_cmd (line 702) | def serialize_cmd(string, id, args): function print_server_params (line 796) | def print_server_params(params): FILE: tn-cli/input_handler.py function readLinesFromStdin (line 12) | def readLinesFromStdin(): function stdin (line 28) | def stdin(InputQueue): FILE: tn-cli/macros.py class Macro (line 8) | class Macro: method __init__ (line 14) | def __init__(self): method name (line 19) | def name(self): method description (line 23) | def description(self): method add_parser_args (line 27) | def add_parser_args(self): method expand (line 31) | def expand(self, id, cmd, args): method run (line 35) | def run(self, id, cmd, args): class Usermod (line 49) | class Usermod(Macro): method name (line 56) | def name(self): method description (line 59) | def description(self): method add_parser_args (line 62) | def add_parser_args(self): method expand (line 72) | def expand(self, id, cmd, args): class Resolve (line 109) | class Resolve(Macro): method name (line 112) | def name(self): method description (line 115) | def description(self): method add_parser_args (line 118) | def add_parser_args(self): method expand (line 121) | def expand(self, id, cmd, args): class Passwd (line 133) | class Passwd(Macro): method name (line 136) | def name(self): method description (line 139) | def description(self): method add_parser_args (line 142) | def add_parser_args(self): method expand (line 146) | def expand(self, id, cmd, args): class Useradd (line 157) | class Useradd(Macro): method name (line 160) | def name(self): method description (line 163) | def description(self): method add_parser_args (line 166) | def add_parser_args(self): method expand (line 179) | def expand(self, id, cmd, args): class Chacs (line 209) | class Chacs(Macro): method name (line 212) | def name(self): method description (line 215) | def description(self): method add_parser_args (line 218) | def add_parser_args(self): method expand (line 223) | def expand(self, id, cmd, args): class Userdel (line 241) | class Userdel(Macro): method name (line 244) | def name(self): method description (line 247) | def description(self): method add_parser_args (line 250) | def add_parser_args(self): method expand (line 254) | def expand(self, id, cmd, args): class Chcred (line 263) | class Chcred(Macro): method name (line 266) | def name(self): method description (line 269) | def description(self): method add_parser_args (line 272) | def add_parser_args(self): method expand (line 279) | def expand(self, id, cmd, args): class Thecard (line 303) | class Thecard(Macro): method name (line 306) | def name(self): method description (line 309) | def description(self): method add_parser_args (line 312) | def add_parser_args(self): method expand (line 316) | def expand(self, id, cmd, args): function parse_macro (line 330) | def parse_macro(parts): FILE: tn-cli/tn-cli.py function exception_hook (line 35) | def exception_hook(type, value, traceBack): FILE: tn-cli/tn_globals.py function printout (line 51) | def printout(*args): function printerr (line 55) | def printerr(*args): function stdout (line 67) | def stdout(*args): function stdoutln (line 77) | def stdoutln(*args): function clip_long_string (line 82) | def clip_long_string(obj): function to_json (line 95) | def to_json(msg): FILE: tn-cli/utils.py class dotdict (line 36) | class dotdict(dict): function makeTheCard (line 44) | def makeTheCard(fn, note, photofile): function inline_image (line 88) | def inline_image(filename): function attachment (line 127) | def attachment(filename): function encode_to_bytes (line 152) | def encode_to_bytes(src): function parse_cred (line 161) | def parse_cred(cred): function parse_trusted (line 176) | def parse_trusted(trusted):