package
Version:
v0.0.0-...-5480aad
Opens a new window with list of versions in this module.
Published: Jul 31, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Chats struct {
IdChats string `json:"id_chats" bson:"idChats"`
Message string `json:"message" bson:"message"`
Responses string `json:"responses" bson:"responses"`
Score float64 `json:"score" bson:"score"`
}
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 Datasets struct {
ID primitive.ObjectID `json:"id" bson:"_id"`
Question string `json:"question" bson:"questions"`
Answer string `json:"answer" bson:"answer"`
}
type Payload struct {
User string `json:"user"`
}
type Requests struct {
Messages string `json:"messages" bson:"messages"`
}
type Response struct {
Status bool `json:"status" bson:"status"`
Message string `json:"message" bson:"message"`
Data interface{} `json:"data" bson:"data"`
}
type Secrets struct {
SecretToken string `json:"secret_token" bson:"secret_token"`
}
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty" `
Username string `json:"username" bson:"username"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Password string `json:"password" bson:"password"`
PasswordHash string `json:"passwordhash" bson:"passwordhash"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Private string `json:"private,omitempty" bson:"private,omitempty"`
Public string `json:"public,omitempty" bson:"public,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.