Documentation
¶
Index ¶
- Constants
- Variables
- func ContractManipulation(contractpath string, signpath string, top int, left int) bool
- func CredentialValidation(usr User) (bool, string)
- func Dbinit(settings mysql.ConnectionURL) (*dbServer, error)
- func DownloadFile(writer http.ResponseWriter, request *http.Request)
- func GenerateToken(len int) string
- func GetClaims(tokenstring string) (jwt.MapClaims, bool)
- func Logger(logstring string)
- func RenderError(w http.ResponseWriter, message string)
- func RenderResponse(w http.ResponseWriter, message string, statusCode int)
- func Save(data string, path string)
- func VerifyEmail(mail string) (bool, string)
- func VerifyPassword(password string) (bool, string)
- type Base64
- type BlackList
- type Contract
- type ContractBasic
- type ContractDetail
- type ContractDetailHash
- type ContractFolder
- type Coordinates
- type EmailVerf
- type Exception
- type Folder
- type JwtToken
- type LogCheck
- type LoginStruct
- type ManageScreen
- type Passrecovery
- type PlaygroundInput
- type Preferences
- type SaveWalletinput
- type SearchInput
- type SendContract
- type SignContract
- type SignRes
- type Signer
- type Signerdata
- type Testing
- type User
- type VerifUser
- type WalletInfo
Constants ¶
View Source
const BlackListCollection = "BlackList"
View Source
const CSVpath = "Files/CSV"
View Source
const ContractCollection = "Contract"
View Source
const ContractFolderCollection = "ContractFolder"
View Source
const ContractHtmlCol = "ContractHtml"
View Source
const Contractfilepath = "Files/Contracts"
View Source
const CoordinatesCol = "Coordinates"
View Source
const Def_pic_path = "Files/Profile_pics/default.jpeg"
View Source
const FolderCollection = "Folder"
View Source
const InitialsPath = "Files/User_signs/Initials"
View Source
const MaxContractSize = 10 * 1024 * 1024
View Source
const MaxpicSize = 5 * 1024 * 1024
View Source
const Profilepicspath = "Files/Profile_pics"
View Source
const RFC850 = "Monday, 02-Jan-06 15:04:05 MST"
View Source
const SignerCollection = "Signer"
View Source
const Signpath = "Files/User_signs/Signs"
View Source
const UserCollection = "Users"
View Source
const VerifCollection = "Verification"
View Source
const WalletsCollection = "Wallets"
Variables ¶
View Source
var AllCoordinates []PlaygroundInput
View Source
var MySigningKey = []byte("secretkey")
Functions ¶
func ContractManipulation ¶
func CredentialValidation ¶
func Dbinit ¶
func Dbinit(settings mysql.ConnectionURL) (*dbServer, error)
Dbinit : creates data base connection and returns database object
func DownloadFile ¶
func DownloadFile(writer http.ResponseWriter, request *http.Request)
func GenerateToken ¶
func RenderError ¶
func RenderError(w http.ResponseWriter, message string)
RenderError : creates error response
func RenderResponse ¶
func RenderResponse(w http.ResponseWriter, message string, statusCode int)
RenderResponse : creates response
func VerifyEmail ¶
func VerifyPassword ¶
Types ¶
type Contract ¶
type Contract struct { ContractID string `db:"ContractID"` Filepath string `db:"filepath"` Status string `db:"status"` ContractcreationTime string `db:"creationTime"` Creator string `db:"Creator"` DelStatus int `db:"delStatus"` UpdateTime string `db:"updateTime"` ContractName string `db:"contractName"` ExpirationTime string `db:"ExpirationTime"` Blockchain int `db:"Blockchain"` Message string `db:"Message"` }
func TimeSearch ¶
type ContractBasic ¶
type ContractDetail ¶
type ContractDetailHash ¶
type ContractFolder ¶
type Coordinates ¶
type LoginStruct ¶
type ManageScreen ¶
type Passrecovery ¶
type PlaygroundInput ¶
type Preferences ¶
type SaveWalletinput ¶
type SearchInput ¶
type SendContract ¶
type SignContract ¶
type Signerdata ¶
type User ¶
type User struct { Userid string `db:"userid"` Email string `db:"email"` Password string `db:"password"` Name string `db:"name"` Company string `db:"company"` Phone string `db:"phone"` Picture string `db:"picture"` Sign string `db:"sign"` Initials string `db:"initials"` Verified int `db:"verified"` CreationTime string `db:"creationTime"` }
type WalletInfo ¶
Click to show internal directories.
Click to hide internal directories.