models

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//UserStatus variables
	UserStatus = userStatus{Active: "active", Inactive: "inactive"}

	//UserRoles variables
	UserRoles = userRoles{
		UserAdmin:        "user_admin",
		HierarchyManager: "hierarchy_manager",
		DeviceManager:    "device_manager",
		Inspector:        "inspector",
	}
)

Functions

This section is empty.

Types

type User

type User struct {
	ID             uuid.UUID `json:"id"`
	Email          string    `json:"email"`
	UserRoles      []string  `json:"userRoles"`
	Username       string    `json:"username"`
	UserStatus     string    `json:"userStatus"`
	EulaAgreedDate string    `json:"eulaAgreedDate"`
	ValidEula      bool      `json:"validEula"`
}

User struct

type UserAgreement

type UserAgreement struct {
	Email      string
	EULAAgreed string
}

UserAgreement struct

type UserCredentials

type UserCredentials struct {
	Username string
	Email    string
	Password string
}

UserCredentials struct

type UserWithCompanies

type UserWithCompanies struct {
	ID         string
	Email      string
	UserRoles  []string
	Username   string
	UserStatus string
	Companies  []string
}

UserWithCompanies struct

Jump to

Keyboard shortcuts

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