keyauth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UNIQUE_ID4_USERVAR = "uuid4"
View Source
const UNIQUE_ID_USERVAR = "uuid1"

Variables

This section is empty.

Functions

func CheckUserExists

func CheckUserExists(username string) bool

func GetVar

func GetVar(user, varname string, timeout_optional ...time.Duration) (map[string]interface{}, error)

func SetVar

func SetVar(user, varname, data string, timeout_optional ...time.Duration) (map[string]interface{}, error)

Types

type KQuery

type KQuery struct {
	// api auth values
	SellerKey string `qs:"sellerkey,omitempty"`
	AppName   string `qs:"name,omitempty"`
	OwnerId   string `qs:"ownerid,omitempty"`
	SessionId string `qs:"sessionid,omitempty"`

	// various request value types for various request types
	// i.e. https://keyauthdocs.apidog.io/api/features/check-session
	Type     string `qs:"type"`
	UserName string `qs:"user,omitempty"`
	VarName  string `qs:"var,omitempty"`
	Data     string `qs:"data,omitempty"`
}

// url query parameters. May be encoded with: encoder := qs.NewEncoder() values, _ := encoder.Values(query) fmt.Println(values.Encode()) // (unescaped) output: "sellerkey=abcd12345&type=testing123"

Jump to

Keyboard shortcuts

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