auth

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthManager

type AuthManager interface {
	GenerateSignature(payload *SignaturePayload) (sigVersion string, signedBody string, err error)
	GenerateUUID() (uuid string)
	GenerateRankToken(userID int64) string
}

func New

func New() (AuthManager, error)

type SignaturePayload

type SignaturePayload struct {
	Csrftoken         string `json:"_csrftoken"`
	DeviceID          string `json:"device_id"`
	UUID              string `json:"_uuid"`
	UserName          string `json:"username"`
	Password          string `json:"password"`
	LoginAttemptCount int    `json:"login_attempt_count"`
}

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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