ctx

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferFromContext added in v0.1.18

func BufferFromContext(ctx context.Context) *bytes.Buffer

func ContextWithBuffer added in v0.1.18

func ContextWithBuffer(ctx context.Context, buffer *bytes.Buffer) context.Context

func ContextWithClientAddr

func ContextWithClientAddr(ctx context.Context, addr ClientAddr) context.Context

func ContextWithClientID

func ContextWithClientID(ctx context.Context, clientID ClientID) context.Context

func ContextWithHash

func ContextWithHash(ctx context.Context, hash *Hash) context.Context

func ContextWithLogger added in v0.2.4

func ContextWithLogger(ctx context.Context, log logger.Logger) context.Context

func ContextWithSid

func ContextWithSid(ctx context.Context, sid Sid) context.Context

func LoggerFromContext added in v0.2.4

func LoggerFromContext(ctx context.Context) logger.Logger

Types

type ClientAddr

type ClientAddr string

func ClientAddrFromContext

func ClientAddrFromContext(ctx context.Context) ClientAddr

type ClientID

type ClientID string

func ClientIDFromContext

func ClientIDFromContext(ctx context.Context) ClientID

type Hash

type Hash struct {
	Source string
}

func HashFromContext

func HashFromContext(ctx context.Context) *Hash

type Sid

type Sid string

func SidFromContext

func SidFromContext(ctx context.Context) Sid

Jump to

Keyboard shortcuts

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