beurse

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 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 Credential

type Credential struct {
	Status  bool   `json:"status" bson:"status"`
	Token   string `json:"token,omitempty" bson:"token,omitempty"`
	Message string `json:"message,omitempty" bson:"message,omitempty"`
}

type Device

type Device struct {
	ID     primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Name   string             `json:"name" bson:"name"`
	Topic  string             `json:"topic" bson:"topic"`
	User   string             `json:"user" bson:"user"`
	Status bool               `json:"status" bson:"status"`
}

type DeviceResponse

type DeviceResponse struct {
	Status  bool     `json:"status"`
	Message string   `json:"message"`
	Data    []Device `json:"data"`
}

type History added in v0.0.14

type History struct {
	ID        primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Name      string             `json:"name" bson:"name"`
	Topic     string             `json:"topic" bson:"topic"`
	Payload   string             `json:"payload" bson:"payload"`
	User      string             `json:"user" bson:"user"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at"`
}

type HistoryResponse added in v0.0.14

type HistoryResponse struct {
	Status  bool      `json:"status"`
	Message string    `json:"message"`
	Data    []History `json:"data"`
}

type Otp added in v0.0.17

type Otp struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Email     string             `json:"email" bson:"email"`
	OTP       string             `json:"otp" bson:"otp"`
	ExpiredAt int64              `json:"expiredat" bson:"expiredat"`
	Status    bool               `json:"status" bson:"status"`
}

type ResetPassword added in v0.0.17

type ResetPassword struct {
	Email    string `json:"email" bson:"email"`
	OTP      string `json:"otp" bson:"otp"`
	Password string `json:"password" bson:"password"`
}

type Response added in v0.0.13

type Response struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

type User

type User struct {
	ID          primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Username    string             `json:"username" bson:"username"`
	Email       string             `json:"Email" bson:"email"`
	Password    string             `json:"password" bson:"password"`
	PhoneNumber string             `json:"phonenumber,omitempty" bson:"phonenumber,omitempty"`
}

Jump to

Keyboard shortcuts

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