modeltiphereth

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken string

type Account

type Account struct {
	ID                model.InternalID
	Platform          string
	PlatformAccountID string
	Name              string
	ProfileURL        string
	AvatarURL         string
	LatestUpdateTime  time.Time
}

type CaptchaAns added in v0.2.8

type CaptchaAns struct {
	ID    string
	Value string
}

type CaptchaQue added in v0.2.8

type CaptchaQue struct {
	ID    string
	Image []byte
}

type DeviceInfo added in v0.2.1

type DeviceInfo struct {
	ID                      model.InternalID
	DeviceName              string
	SystemType              SystemType
	SystemVersion           string
	ClientName              string
	ClientSourceCodeAddress string
	ClientVersion           string
}

type PullAccountInfo

type PullAccountInfo struct {
	ID                model.InternalID
	Platform          string
	PlatformAccountID string
}

type RefreshToken

type RefreshToken string

type SystemType added in v0.2.3

type SystemType int
const (
	SystemTypeUnspecified SystemType = iota
	SystemTypeAndroid
	SystemTypeIOS
	SystemTypeWindows
	SystemTypeMacOS
	SystemTypeLinux
	SystemTypeWeb
)

type User

type User struct {
	ID       model.InternalID
	UserName string
	PassWord string
	Type     libauth.UserType
	Status   UserStatus
}

type UserCount added in v0.2.8

type UserCount struct {
	Count int
}

type UserSession added in v0.2.1

type UserSession struct {
	ID           model.InternalID
	UserID       model.InternalID
	RefreshToken string
	DeviceInfo   *DeviceInfo
	CreateAt     time.Time
	ExpireAt     time.Time
}

type UserStatus

type UserStatus int
const (
	UserStatusUnspecified UserStatus = iota
	UserStatusActive
	UserStatusBlocked
)

Jump to

Keyboard shortcuts

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