model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeIOS         = "ios"
	TypeAndriod     = "android"
	GdtIOSAppID     = "736536022"
	GdtAndroidAppID = "100951776"

	ChannelToutiao = "toutiao"
	ChannelShike   = "2883"
	ChannelDontin  = "415209141"
)

Variables

View Source
var (
	ChannelGdt = map[string]*GdtKey{
		"1439767": &GdtKey{Encrypt: "BAAAAAAAAAAAFfgX", Sign: "ee358e8dccbbc4ba"},
		"406965":  &GdtKey{Encrypt: "BAAAAAAAAAAABjW1", Sign: "a45cbd2d4c5344b3"},
		"7799673": &GdtKey{Encrypt: "BAAAAAAAAAAAdwN5", Sign: "54b6deffcd64b6b0"},
	}

	AppIDGdt = map[string]string{
		TypeIOS:     GdtIOSAppID,
		TypeAndriod: GdtAndroidAppID,
	}
)

Functions

func GdtIMEI

func GdtIMEI(imei string) (gdtImei string)

func InetAtoN

func InetAtoN(s string) (sum uint32)

InetAtoN conver ip addr to uint32.

func InetNtoA

func InetNtoA(sum uint32) string

InetNtoA conver uint32 to ip addr.

func IsIPv4

func IsIPv4(addr string) bool

IsIPv4 is ipv4

Types

type GdtKey

type GdtKey struct {
	Encrypt string
	Sign    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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