Documentation ¶
Index ¶
- type Context
- func (c *Context) AcceptLanguage() string
- func (c *Context) Context() context.Context
- func (c *Context) GetT() i18n.TranslateFunc
- func (c *Context) IPAddress() string
- func (c *Context) Path() string
- func (c *Context) RequestId() string
- func (c *Context) Session() *model.Session
- func (c *Context) SetAcceptLanguage(s string)
- func (c *Context) SetContext(ctx context.Context)
- func (c *Context) SetIPAddress(s string)
- func (c *Context) SetPath(s string)
- func (c *Context) SetRequestId(s string)
- func (c *Context) SetSession(s *model.Session)
- func (c *Context) SetT(t i18n.TranslateFunc)
- func (c *Context) SetUserAgent(s string)
- func (c *Context) T(translationID string, args ...interface{}) string
- func (c *Context) UserAgent() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func EmptyContext ¶
func EmptyContext() *Context
func NewContext ¶
func (*Context) AcceptLanguage ¶
func (*Context) GetT ¶
func (c *Context) GetT() i18n.TranslateFunc
func (*Context) SetAcceptLanguage ¶
func (*Context) SetContext ¶
func (*Context) SetIPAddress ¶
func (*Context) SetRequestId ¶
func (*Context) SetSession ¶
func (*Context) SetT ¶
func (c *Context) SetT(t i18n.TranslateFunc)
func (*Context) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.