Documentation ¶
Index ¶
- func DeleteSession(key string, database *DB)
- func Hash(data string) string
- func NewSession(userID string, database *DB) *http.Cookie
- type DB
- func (db *DB) CloseDB()
- func (db *DB) DeleteAll(collection string, document interface{})
- func (db *DB) DeleteOne(collection string, ObjID primitive.ObjectID)
- func (db *DB) FindAll(query bson.D, collectionname string) []primitive.D
- func (db *DB) FindOne(query bson.D, colletionname string) interface{}
- func (db *DB) InsertOne(collention string, document interface{}) bool
- func (db *DB) UpdateOne(collection string, document interface{}, ObjID primitive.ObjectID) bool
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSession ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.