Documentation ¶
Overview ¶
Package enduser manages end user information with context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailString ¶
type EmailString string
EmailString holds email string. It will not output empty string in format. Don't use this type in unexported field. fmt won't invoke formatting method on unexported fields. see https://golang.org/pkg/fmt/.
func (EmailString) GoString ¶
func (e EmailString) GoString() string
func (EmailString) String ¶
func (e EmailString) String() string
type EndUser ¶
type EndUser struct { Email EmailString Group string // contains filtered or unexported fields }
EndUser represents end user of httprpc calls.
func FromContext ¶
FromContext returns the EndUser value stored in ctx, if any.
Click to show internal directories.
Click to hide internal directories.