context

package
v0.0.0-...-01f7578 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientContext

type ClientContext struct {
	AppName         string
	AppVersion      string
	AppVersionCode  string
	Manufacturer    string
	Model           string
	Platform        string
	PlatformVersion string
	SdkVersion      string
	UserAgent       string
}

func GetClientContext

func GetClientContext(ctx context.Context) (ClientContext, error)

type ContextKey

type ContextKey string
const (
	CONTEXT_CLIENT_APPNAME         ContextKey = "appname"
	CONTEXT_CLIENT_APPVERSION      ContextKey = "appversion"
	CONTEXT_CLIENT_APPVERSIONCODE  ContextKey = "appversioncode"
	CONTEXT_CLIENT_MANUFACTURER    ContextKey = "manufacturer"
	CONTEXT_CLIENT_MODEL           ContextKey = "model"
	CONTEXT_CLIENT_PLATFORM        ContextKey = "platform"
	CONTEXT_CLIENT_PLATFORMVERSION ContextKey = "platformversion"
	CONTEXT_CLIENT_SDKVERSION      ContextKey = "sdkversion"
)

func (ContextKey) String

func (key ContextKey) String() string

Jump to

Keyboard shortcuts

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