Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppContext context.Context = context.Background() FbRef *db.Ref FbClient *db.Client FbAuthClient *auth.Client )
View Source
var LOGGER = logging.MustGetLogger("wwfirebase")
Functions ¶
func AuthenticateWithAdminPrivileges ¶
AuthenticateForAuthService: Returns dbclient and authclient.
func GetRootRef ¶
func SendFBTrustSuccess ¶
This function transmits the trust line request result directly to firebase database. Since requestor and issuer are two actors on the same trust request, the firebase DB connected the portal to show the updated state on the UI using firebase DB as common data store
Types ¶
type FbTrustLogSuccess ¶
type FbTrustLogSuccess struct { // Log for successful trust operation TimeUpdated *int64 `json:"time_updated"` RequestorID *string `json:"requestor_id"` IssuerID *string `json:"issuer_id"` AccountName *string `json:"account_name"` AssetCode *string `json:"asset_code"` Limit int64 `json:"limit"` Status *string `json:"status"` ReasonRejected *string `json:"reason_rejected"` }
Click to show internal directories.
Click to hide internal directories.