rtm_package

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 5 Imported by: 0

README

rtm-package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertDataUser

func InsertDataUser(db *mongo.Database, id, nama, email string, hp string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

Types

type User

type User struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Iduser    string             `bson:"iduser,omitempty" json:"iduser,omitempty"`
	Nama      string             `bson:"nama,omitempty" json:"nama,omitempty"`
	Email     string             `bson:"email,omitempty" json:"email,omitempty"`
	Handphone string             `bson:"handphone,omitempty" json:"handphone,omitempty"`
}

func DeleteData

func DeleteData(phone string, db *mongo.Database, col string) (data User)

func GetDataUserFromPhone

func GetDataUserFromPhone(phone string, db *mongo.Database, col string) (data User)

func GetDatauser

func GetDatauser(id string, db *mongo.Database, col string) (data []User)

Jump to

Keyboard shortcuts

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