Versions in this module Expand all Collapse all v0 v0.14.1 Jan 16, 2025 v0.14.0 Dec 18, 2024 Changes in this version + const VersionMajor + const VersionMinor + const VersionPatch + const VersionTag + var EDUCountTotal = prometheus.NewCounter(prometheus.CounterOpts{ ... }) + var ErrPasswordTooLong = fmt.Errorf("password too long: max %d characters", maxPasswordLength) + var ErrPasswordWeak = fmt.Errorf("password too weak: min %d characters", minPasswordLength) + var ErrUsernameInvalid = errors.New("username can only contain characters a-z, 0-9, or '_+-./='") + var ErrUsernameTooLong = fmt.Errorf("username exceeds the maximum length of %d characters", maxUsernameLength) + var ErrUsernameUnderscore = errors.New("username cannot start with a '_'") + var PDUCountTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + func CloseAndLogIfError(ctx context.Context, closer io.Closer, message string) + func PasswordResponse(err error) *util.JSONResponse + func SetupHookLogging(hooks []config.LogrusHook) + func SetupPprof() + func SetupStdLogging() + func UsernameResponse(err error) *util.JSONResponse + func ValidateApplicationServiceRequest(cfg *config.ClientAPI, userIDOrLocalpart string, accessToken string) (string, *util.JSONResponse) + func ValidateApplicationServiceUserID(userID string) error + func ValidateApplicationServiceUsername(localpart string, domain spec.ServerName) error + func ValidatePassword(password string) error + func ValidateUsername(localpart string, domain spec.ServerName) error + func VersionString() string + type MutexByRoom struct + func NewMutexByRoom() *MutexByRoom + func (m *MutexByRoom) Lock(roomID string) + func (m *MutexByRoom) Unlock(roomID string) + type Trace struct + func StartRegion(inCtx context.Context, name string) (Trace, context.Context) + func StartTask(inCtx context.Context, name string) (Trace, context.Context) + func (t Trace) EndRegion() + func (t Trace) EndTask() + func (t Trace) SetTag(key string, value any) + type TxnReq struct + func NewTxnReq(rsAPI api.FederationRoomserverAPI, userAPI userAPI.FederationUserAPI, ...) TxnReq + func (t *TxnReq) ProcessTransaction(ctx context.Context) (*fclient.RespSend, *util.JSONResponse)