package
0.0.0-20171208070202-dc3395e96a2f
Repository: https://github.com/gachain/go-gachain-mvp.git
Documentation: pkg.go.dev
# Functions
Ajax is a common handle function for ajax requests.
App is a controller for application install template page.
CallController calls the method with this name.
CallJSON calls the ajax controller.
CallMethod calls the method.
CallPage calls the page controller.
CheckInputData calls utils.CheckInputData for the each item of the map.
CheckLang checks if there is a language with such id If some muck was sent in the lang.
ConfigInit reads ini file.
Content is the main controller.
EncryptNewKey creates a shared key, generates and crypts a new private key.
No description provided by the author
GetChain updates information about transactions.
GetLang returns the user's language.
GetSessCitizenID returns session's citizen id.
GetSessInt64 returns the integer value of the session key.
GetSessPublicKey returns the session public key.
GetSessString returns the string value of the session key.
GetSessWalletID returns session's wallet id.
Index is a control for index page.
IsPassValid checks password and update passwords list.
SessInit initializes sessions.
SetLang sets lang cookie.
Template is a handle function for the template page.
UpdateChain returns the latest transactions.
WsBlockchain is a handle function for WebSocket.
# Structs
AccountInfo is a structure for the list of the accounts.
AddressJSON is a structure of the ajax_adresses ajax request.
AppInfo is a structure with information about the application.
AppProcess is a structure of the ajax_app_process ajax request.
ChainInfo contains infromation about transaction.
ChainMsg contains latest transactions.
CitizenFieldsJSON is a structure for the answer of ajax_citizen_fields ajax request.
CitizenInfoJSON is a structure for the answer of ajax_citizen_info ajax request.
CommonPage is a structure with common information about the user and state.
TxSignJSON is a structure for additional signs of transaction.
ContractInfo is a structure for the answer of ajax_contract_info ajax request.
Controller is the main controller's structure.
EncryptKey is a structure for the answer of ajax_encrypt_key ajax request.
ExpContract contains information about a contract.
ExplorerJSON is a structure for the answer of ajax_explorer ajax request.
GenKeys is a structure for the answer of ajax_gen_keys ajax request.
No description provided by the author
GetCntJSON is a structure for the answer of ajax_citizen_fields ajax request.
GetUIDJSON is a structure for the answer of ajax_get_uid ajax request.
HistoryJSON is a structure for the answer of ajax_history ajax request.
InterfaceMenu is a structure for ajax_get_menu ajax request.
LangInfo is a structure for language name and code.
LangRes contains the language resource.
LocStorage is a structure for answer of ajax_storage request.
NewKey is a structure for the answer of ajax_new_key ajax request.
NewState is a structure for the answer of ajax_new_state ajax request.
PrepareTxJSON is a structure for the answer of ajax_prepare_tx ajax request.
SendTxJSON is a structure for the answer of ajax_send_tx ajax request.
SignInJSON is a structure for the result of the sign in request.
SignRes contains the data of the signature.
SmartFieldsJSON is a structure for the answer of ajax_smart_fields ajax request.
StateDetails is a structure for the answer of ajax_state_coords ajax request.
TxSignJSON is a structure for additional signs of transaction.
# Type aliases
AppsList is a type for a slice of AppInfo.
ExpSlice is a slice of ExpContract.
ListLangRes is a slice of LangRes structures.