Documentation ¶
Index ¶
- func CheckPasswordHash(passwordhash, hash string) bool
- func DecodeGetUser(PublicKey, tokenStr string) (pay string, err error)
- func Decoder(publickey, tokenstr string) (payload model.Payload, err error)
- func EncodeWithUsername(username, privatekey string) (string, error)
- func FindAllUsers(conn *mongo.Database) ([]model.User, error)
- func FindUserByUsername(conn *mongo.Database, username string) (*model.User, error)
- func GetAddress() (ipport string, network string)
- func HashPass(passwordhash string) (string, error)
- func InsertComment(conn *mongo.Database, comment model.Comment) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertUserdata(MongoConn *mongo.Database, username, email, password, passwordhash string) (InsertedID interface{})
- func IsPasswordValid(mongoconn *mongo.Database, userdata model.User) bool
- func Jsonstr(strc interface{}) string
- func QueriesALL(db *mongo.Database, ctx context.Context) (dest []model.Datasets, err error)
- func QueriesDataRegexp(db *mongo.Database, ctx context.Context, queries string) (dest model.Datasets, err error)
- func QueriesDataRegexpALL(db *mongo.Database, ctx context.Context, queries string) (dest model.Datasets, score float64, err error)
- func QueriesSecret(db *mongo.Database, ctx context.Context, secret string) (dest model.Secrets, err error)
- func SeparateSuffixMu(word string) string
- func SetConnection() *mongo.Database
- func Stemmer(Sentences string) (newString string)
- func WriteJSON(respw http.ResponseWriter, statusCode int, content interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func DecodeGetUser ¶
func EncodeWithUsername ¶
func FindUserByUsername ¶
Get User
func GetAddress ¶
func InsertComment ¶
func InsertOneDoc ¶
func InsertUserdata ¶
func QueriesALL ¶
func QueriesDataRegexp ¶
func QueriesDataRegexpALL ¶
func QueriesSecret ¶
func SeparateSuffixMu ¶
Fungsi untuk memisahkan kata dengan imbuhan "mu" di akhir
func SetConnection ¶
func WriteJSON ¶
func WriteJSON(respw http.ResponseWriter, statusCode int, content interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.