user

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypeOwner  Type = 1
	TypeRenter Type = 2

	TypeOwnerString  = "owner"
	TypeRenterString = "renter"
)

list of user type

View Source
const (
	GenderInvalidString = "invalid"
	GenderMaleString    = "male"
	GenderFemaleString  = "female"
)

list of gender

Variables

View Source
var (
	ErrUserNotFound = errors.New("user not found")
)

list of user errors

Functions

This section is empty.

Types

type Bio

type Bio struct {
	UserID   string
	FullName string
	// Gender     Gender
	Avatar    string
	Birthday  time.Time
	CreatedAt time.Time
	UpdatedAt time.Time
	IsTest    bool
}

Bio of user

type Country

type Country string

Country of user

const (
	CountryID Country = "ID"
)

list of country in this project

func (Country) Validate

func (c Country) Validate() error

Validate user country

type CountryCode

type CountryCode string

CountryCode of user

type Hash

type Hash string

Hash of user

func (Hash) Validate

func (h Hash) Validate() error

Validate user hash

type PhoneNumber

type PhoneNumber string

PhoneNumber of user

type Registrations

type Registrations struct {
	ID          string
	UserID      string
	UserType    int
	UserStatus  int
	HashID      string
	FullName    string
	Email       string
	PhoneNumber string
	BirthDate   time.Time
	Channel     int
	Device      int
	Lat         string
	Long        string
	DeviceToken string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	IsTest      bool
}

Registrations struct

type Type

type Type int

Type of user

type User

type User struct {
	ID          string
	HashID      Hash
	UserStatus  int
	UserType    Type
	PhoneNumber string
	Email       string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	IsTest      bool
}

User struct

Jump to

Keyboard shortcuts

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