ctx

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 1 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ContextWithSid

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

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