state

package
v0.0.0-...-cff5d44 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceId

func GetDeviceId(ctx context.Context) string

GetDeviceId gets the device id from the context

func GetLocale

func GetLocale(ctx context.Context) string

GetLocale gets the locale from the context

func SetDeviceId

func SetDeviceId(ctx context.Context, deviceId string) context.Context

SetDeviceId sets the device id in the context

func SetLocale

func SetLocale(ctx context.Context, locale string) context.Context

SetLocale sets the locale in the context

Types

type ContextKey

type ContextKey string
const DeviceIDKey ContextKey = "device_id"

Jump to

Keyboard shortcuts

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