request

package
v6.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

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 NewContext(ctx context.Context, requestId, ipAddress, path, userAgent, acceptLanguage string, session model.Session, t i18n.TranslateFunc) *Context

func (*Context) AcceptLanguage

func (c *Context) AcceptLanguage() string

func (*Context) Context

func (c *Context) Context() context.Context

func (*Context) GetT

func (c *Context) GetT() i18n.TranslateFunc

func (*Context) IPAddress

func (c *Context) IPAddress() string

func (*Context) Path

func (c *Context) Path() string

func (*Context) RequestId

func (c *Context) RequestId() string

func (*Context) Session

func (c *Context) Session() *model.Session

func (*Context) SetAcceptLanguage

func (c *Context) SetAcceptLanguage(s string)

func (*Context) SetContext

func (c *Context) SetContext(ctx context.Context)

func (*Context) SetIPAddress

func (c *Context) SetIPAddress(s string)

func (*Context) SetPath

func (c *Context) SetPath(s string)

func (*Context) SetRequestId

func (c *Context) SetRequestId(s string)

func (*Context) SetSession

func (c *Context) SetSession(s *model.Session)

func (*Context) SetT

func (c *Context) SetT(t i18n.TranslateFunc)

func (*Context) SetUserAgent

func (c *Context) SetUserAgent(s string)

func (*Context) T

func (c *Context) T(translationID string, args ...interface{}) string

func (*Context) UserAgent

func (c *Context) UserAgent() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL