Documentation ¶
Index ¶
- func BufferFromContext(ctx context.Context) *bytes.Buffer
- func ContextWithBuffer(ctx context.Context, buffer *bytes.Buffer) context.Context
- func ContextWithClientAddr(ctx context.Context, addr ClientAddr) context.Context
- func ContextWithClientID(ctx context.Context, clientID ClientID) context.Context
- func ContextWithHash(ctx context.Context, hash *Hash) context.Context
- func ContextWithLogger(ctx context.Context, log logger.Logger) context.Context
- func ContextWithSid(ctx context.Context, sid Sid) context.Context
- func LoggerFromContext(ctx context.Context) logger.Logger
- type ClientAddr
- type ClientID
- type Hash
- type Sid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithBuffer ¶ added in v0.1.18
func ContextWithClientAddr ¶
func ContextWithClientAddr(ctx context.Context, addr ClientAddr) context.Context
func ContextWithClientID ¶
func ContextWithLogger ¶ added in v0.2.4
Types ¶
type ClientAddr ¶
type ClientAddr string
func ClientAddrFromContext ¶
func ClientAddrFromContext(ctx context.Context) ClientAddr
Click to show internal directories.
Click to hide internal directories.