types

package
v0.0.0-...-d57f268 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppVersion = &protos.AppVersion{
	VersionNumber: &protos.VersionNumber{
		Major: 12,
		Minor: 42,
	},
	Flavor: protos.Flavor_PRODUCTION,
}
View Source
var BundleTag = "12.42.0"

Functions

func NewDevice

func NewDevice() string

Types

type FideliusKeys

type FideliusKeys struct {
	RWK                []byte `json:"rwk"`             // hmac_sha256_key used to sign the keypairid
	PubKey             []byte `json:"pubKey"`          // ecdsa pubkey
	PrivKey            []byte `json:"privKey"`         // ecdsa privkey
	UncompressedPubkey []byte `json:"uncompressedKey"` // uncompressed pubkey
}

type RequestType

type RequestType int
const (
	NORMAL RequestType = 0
	GRPC   RequestType = 1
)

type SnapCookies

type SnapCookies struct {
	HOST_SC_A_SESSION         string `json:"__Host-sc-a-session,omitempty"`
	HOST_X_SNAP_CLIENT_COOKIE string `json:"__Host-X-Snap-Client-Cookie,omitempty"`
	HOST_SC_A_NONCE           string `json:"__Host-sc-a-nonce,omitempty"`
}

func NewCookiesFromFile

func NewCookiesFromFile(path string) (*SnapCookies, error)

FROM JSON FILE.

func NewCookiesFromString

func NewCookiesFromString(cookieStr string) *SnapCookies

type SnapTokens

type SnapTokens struct {
	SSO_TOKEN string `json:"sso_token,omitempty"`
}

Jump to

Keyboard shortcuts

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