Document variable names for request.CTX and mlog.Logger (#26029)

Этот коммит содержится в:
Ben Schumacher
2024-01-26 14:03:35 +01:00
коммит произвёл GitHub
родитель 223c9c7426
Коммит 929ab6b289
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@@ -12,6 +12,7 @@ import (
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
// Context should be abbreviated as `rctx`.
type Context struct {
t i18n.TranslateFunc
session model.Session
@@ -148,6 +149,7 @@ func (c *Context) With(f func(ctx CTX) CTX) CTX {
return f(c)
}
// CTX should be abbreviated as `rctx`.
type CTX interface {
T(string, ...interface{}) string
GetT() i18n.TranslateFunc