UsersBackend

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 6 Imported by: 1

README

UsersBackend

Backend untuk Handle data User

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataUserForAdmin added in v0.0.3

func GetDataUserForAdmin(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string

func IsAdmin added in v0.0.3

func IsAdmin(Tokenstr, PublicKey string) bool

func Login

func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string

func Register

func Register(Mongoenv, dbname string, r *http.Request) string

Types

type ResponseBack

type ResponseBack struct {
	Status  int      `json:"status"`
	Message string   `json:"message"`
	Data    []string `json:"data"`
}

Jump to

Keyboard shortcuts

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