const SALTS_BUCKET = "salts_bucket"
const USERS_BUCKET = "users_bucket"
This section is empty.
func HandleRequest ¶
HandleRequest recieves a plain text string query, and hanles it. In most cases it adds it to the requests queue. Whilst in AUTH requests it validates the credentials and returns an answer.
type AuthRequest ¶
type CreateBucketRequest ¶
CreateBucketRequest creates a database file(bucket) in the db folder
type CreateUserRequest ¶
type DatabaseConnection ¶
DatabaseConnection is an extension of the net.Conn struct, added additional required properties.
type DeleteRequest ¶
DeleteRequest describes the DELETE request to the database - when the client wants to delete a bucket or a key
type GetRequest ¶
GetRequest describes the GET request to the database - when the client wants to know the value of a certain key
type SetRequest ¶
SetRequest describes the SET request to the database - when the client wants to set a value to a certain key