Documentation
¶
Index ¶
- func AmbilDataGeojson(mongoenv, dbname, collname string) string
- func AmbilDataGeojsonHeader(mongoenv, dbname, collname string, r *http.Request) string
- func CheckPasswordHash(password, hash string) bool
- func CompareUsername(mongoenv *mongo.Database, collname, username string) bool
- func CreateNewUserRole(mongoenv *mongo.Database, collname string, userdata User) interface{}
- func CreateUserAndAddedToeken(privatekey string, mongoenv *mongo.Database, collname string, userdata User) interface{}
- func DeleteUser(mongoenv *mongo.Database, collname string, userdata User) interface{}
- func HapusUser(mongoenv, dbname, collname string, r *http.Request) string
- func HashPassword(password string) (string, error)
- func InsertUserdata(mongoenv *mongo.Database, collname, username, role, password string) (InsertedID interface{})
- func IsPasswordValid(mongoenv *mongo.Database, collname string, userdata User) bool
- func LoginUser(privatekey, mongoenv, dbname, collname string, r *http.Request) string
- func MemasukkanKoordinat(MongoConn *mongo.Database, colname string, coordinate []float64, ...) (InsertedID interface{})
- func MembuatGeojsonPoint(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPointHeader(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolygon(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolygonHeader(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolyline(mongoenv, dbname, collname string, r *http.Request) string
- func MembuatGeojsonPolylineHeader(mongoenv, dbname, collname string, r *http.Request) string
- func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
- func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
- func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
- func PostStructWithToken[T any](tokenkey string, tokenvalue string, structname interface{}, urltarget string) (result T, errormessage string)
- func RegistrasiUser(mongoenv, dbname, collname string, r *http.Request) string
- func ReplaceOneDoc(mongoenv *mongo.Database, collname string, filter bson.M, userdata User) interface{}
- func ReturnStruct(DataStuct any) string
- func SetConnection(mongoenv, dbname string) *mongo.Database
- type Coordinate
- type Credential
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPoint
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Jaja
- type Pesan
- type PostToken
- type Properties
- type Response
- type ResponseDataUser
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmbilDataGeojson ¶ added in v1.0.7
func AmbilDataGeojsonHeader ¶ added in v1.2.7
func CheckPasswordHash ¶
func CompareUsername ¶ added in v1.0.7
func CreateNewUserRole ¶
func DeleteUser ¶
func HashPassword ¶
func InsertUserdata ¶ added in v1.0.5
func IsPasswordValid ¶
func MemasukkanKoordinat ¶ added in v1.0.9
func MembuatGeojsonPoint ¶ added in v1.1.2
func MembuatGeojsonPointHeader ¶ added in v1.2.7
func MembuatGeojsonPolygon ¶ added in v1.1.2
func MembuatGeojsonPolygonHeader ¶ added in v1.2.7
func MembuatGeojsonPolyline ¶ added in v1.1.2
func MembuatGeojsonPolylineHeader ¶ added in v1.2.7
func PostLinestring ¶ added in v1.1.1
func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
func PostPoint ¶ added in v1.1.2
func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeoJsonPoint) interface{}
func PostPolygon ¶ added in v1.1.2
func PostPolygon(mongoconn *mongo.Database, collection string, polygondata GeoJsonPolygon) interface{}
func PostStructWithToken ¶ added in v1.1.9
func RegistrasiUser ¶ added in v1.1.6
func ReplaceOneDoc ¶
func ReturnStruct ¶ added in v1.0.7
func SetConnection ¶
Types ¶
type Coordinate ¶ added in v1.0.9
type Credential ¶
type GeoJson ¶
type GeoJson struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry Geometry `json:"geometry" bson:"geometry"` }
type GeoJsonLineString ¶
type GeoJsonLineString struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryLineString `json:"geometry" bson:"geometry"` }
type GeoJsonPoint ¶ added in v1.1.2
type GeoJsonPoint struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryPoint `json:"geometry" bson:"geometry"` }
type GeoJsonPolygon ¶
type GeoJsonPolygon struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry GeometryPolygon `json:"geometry" bson:"geometry"` }
type Geometry ¶
type Geometry struct { Coordinates interface{} `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` }
type GeometryLineString ¶
type GeometryPoint ¶
type GeometryPolygon ¶
type Jaja ¶ added in v1.2.6
type Jaja struct { Status bool `json:"status" bson:"status"` Message string `json:"message" bson:"message"` Data interface{} `json:"data" bson:"data"` }
func CreateResponse ¶ added in v1.2.6
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
type Response ¶
type Response struct {
Token string `json:"token,omitempty" bson:"token,omitempty"`
}
type ResponseDataUser ¶ added in v1.0.7
type User ¶
type User struct { Username string `json:"username" bson:"username"` Password string `json:"password" bson:"password"` Role string `json:"role,omitempty" bson:"role,omitempty"` Token string `json:"token,omitempty" bson:"token,omitempty"` Private string `json:"private,omitempty" bson:"private,omitempty"` Publick string `json:"publick,omitempty" bson:"publick,omitempty"` }
func FindUserUser ¶
Click to show internal directories.
Click to hide internal directories.