types

package
v0.0.0-...-2d9c1c3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2018 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 AuthRequest

type AuthRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

AuthRequest struct

func (AuthRequest) Validate

func (r AuthRequest) Validate() bool

Validate auth request

type TokenResponse

type TokenResponse struct {
	Value   string `json:"token"`
	Expires int64  `json:"expires"`
}

TokenResponse response

type User

type User struct {
	ID        string       `storm:"id" json:"id"`
	Email     string       `storm:"unique" json:"email"`
	FirstName std.String   `json:"firstname,omitempty"`
	LastName  std.String   `json:"lastname,omitempty"`
	Password  string       `json:"password,omitempty"`
	IsEnabled bool         `json:"enabled"`
	IsExpired bool         `json:"expired"`
	IsLocked  bool         `json:"locked"`
	Timezone  std.String   `json:"timezone,omitempty"`
	Locale    std.String   `json:"locale,omitempty"`
	CreatedAt std.DateTime `json:"created_at"`
	UpdatedAt std.DateTime `json:"updated_at"`
	DeletedAt std.DateTime `json:"deleted_at"`
}

User struct

Jump to

Keyboard shortcuts

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