model

package
v0.0.0-...-79ce300 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Token    string    `json:"session_token"`
	UserData *UserData `json:"user_data"`
}

type User

type User struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	State     string    `json:"state"`
	UserToken UserToken `json:"user_token"`
}

type UserData

type UserData struct {
	Id       string `json:"id"`
	Status   string `json:"status"`
	Type     string `json:"type"`
	SignUp   bool   `json:"sign_up"`
	Username string `json:"username"`

	// user_metas
	Profile string `json:"profile"`

	// user_devices
	DeviceId       string `json:"user_device_id"`
	DeviceType     string `json:"device_type"`
	DeviceBrowser  string `json:"device_os"`
	DevicePlatform string `json:"device_platform"`
}

type UserToken

type UserToken struct {
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
	TokenType    string    `json:"token_type"`
	Expiry       time.Time `json:"expiry"`

	Email   string `json:"email"`
	Picture string `json:"picture"`
}

Jump to

Keyboard shortcuts

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