models

package
v0.0.0-...-94e59cb Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveServices

type ActiveServices struct {
	Id          uint `json:"id"`
	UserId      uint `json:"userid"`
	User        User
	AwsServices string    `json:"awsservices"`
	SwServices  string    `json:"swservices"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type ActiveServicesInput

type ActiveServicesInput struct {
	UserId      uint   `json:"userid"`
	AwsServices string `json:"awsservices"`
	SwServices  string `json:"swservices"`
}

type AwsServicesData

type AwsServicesData struct {
	Id        uint `json:"id"`
	UserId    uint `json:"userid"`
	User      User
	Data      string    `json:"data"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type AwsServicesDataInput

type AwsServicesDataInput struct {
	UserId uint `json:"userid"`
}

type Login

type Login struct {
	Mail     string `json:"mail"`
	Password string `json:"password"`
}

type RequestedRegions

type RequestedRegions struct {
	Id        uint `json:"id"`
	UserId    uint `json:"userid"`
	User      User
	AwsRegion string    `json:"awsregion"`
	SwRegion  string    `json:"swregion"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type RequestedRegionsInput

type RequestedRegionsInput struct {
	UserId    uint   `json:"userid"`
	AwsRegion string `json:"awsregion"`
	SwRegion  string `json:"swregion"`
}

type SwServicesData

type SwServicesData struct {
	Id        uint `json:"id"`
	UserId    uint `json:"userid"`
	User      User
	Data      string    `json:"data"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type SwServicesDataInput

type SwServicesDataInput struct {
	UserId uint `json:"userid"`
}

type User

type User struct {
	Id        uint      `json:"id"`
	Username  string    `json:"username"`
	Mail      string    `json:"mail"`
	Password  string    `json:"password"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (User) CheckPassword

func (u User) CheckPassword(pswrd string) error

func (*User) PrepareResponse

func (u *User) PrepareResponse()

type UserInput

type UserInput struct {
	Username string `json:"username"`
	Mail     string `json:"mail"`
	Password string `json:"password"`
}

type Users

type Users []User

Jump to

Keyboard shortcuts

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