db

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBookingMsg

func GetBookingMsg(identity string) (string, error)

GetBookingMsg return the booking message from db

func GetVerifyMsg

func GetVerifyMsg(identity string) (string, error)

GetVerifyMsg return what message you should use

Types

type OrgUser

type OrgUser struct {
	ID          uuid.UUID `db:"id" json:"id"`
	Identity    string    `db:"identity" json:"identity" form:"identity"`
	Roles       string    `db:"roles" json:"roles" form:"roles" validate:"required"`
	ProviderArn string    `db:"provider_arn" json:"providerArn" form:"providerArn" validate:"required"`
	RoleArn     string    `db:"role_arn" json:"roleArn" form:"roleArn" validate:"required"`
	AwsID       string    `db:"aws_id" json:"awsId" form:"awsId" validate:"required"`
	IsActive    bool      `db:"is_active" json:"isActive"`
	CreatedAt   time.Time `db:"created_at" json:"createdAt"`
	UpdatedAt   time.Time `db:"updated_at" json:"updatedAt"`
}

OrgUser struct

type Signin

type Signin struct {
	ID        uuid.UUID `db:"id"`
	Identity  string    `db:"identity"`
	Msg       string    `db:"msg"`
	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
}

Signin struct

type User

type User struct {
	ID        uuid.UUID `db:"id" json:"id"`
	OrgUser   string    `db:"org_user" json:"orgUser" form:"orgUser" validate:"required"`
	Roles     string    `db:"roles" json:"roles" form:"roles" validate:"required"`
	Identity  string    `db:"identity" json:"identity" form:"identity"`
	IsActive  int       `db:"is_active" json:"isActive"`
	CreatedAt time.Time `db:"created_at" json:"createdAt"`
	UpdatedAt time.Time `db:"updated_at" json:"updatedAt"`
}

User struct

Jump to

Keyboard shortcuts

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