Documentation
¶
Index ¶
- func DeviceID(ctx context.Context) model.DeviceID
- func Logger(ctx context.Context) logger.Logger
- func RequestID(ctx context.Context) string
- func WithDeviceID(ctx context.Context, deviceID model.DeviceID) context.Context
- func WithLogger(ctx context.Context, logger logger.Logger) context.Context
- func WithRequestID(ctx context.Context, rid string) context.Context
- type DeviceIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDeviceID ¶
WithDeviceID attaches `device_id` to context.
func WithLogger ¶
WithLogger attaches logger to context.
Types ¶
type DeviceIDKey ¶
type DeviceIDKey struct{}
Click to show internal directories.
Click to hide internal directories.