Documentation ¶
Index ¶
- type Balance
- type Balances
- type DBUserInvite
- type NFTToken
- type OrgInfo
- type ReqGetBalance
- type ReqUserInviteFromOrg
- type ReqUserRegisterToOrg
- type Request
- type System
- type Systems
- type Token
- type TokenBlock
- type TokenTransaction
- type UserACL
- type UserACLs
- type UserGroup
- type UserGroups
- type UserInGroup
- type UserRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { Address string `gorm:"column:address;primary_key"` Coin string `gorm:"column:coin"` Balance uint64 `gorm:"column:balance"` UnconfirmedBalance uint64 `gorm:"column:unconfirmed_balance"` TotalReceived uint64 `gorm:"column:total_received"` TotalSent uint64 `gorm:"column:total_sent"` }
func NewBalance ¶
func NewBalance() *Balance
func (*Balance) Deserialize ¶
type Balances ¶
type Balances struct {
// contains filtered or unexported fields
}
func NewBalances ¶
func NewBalances() *Balances
func (*Balances) GetBalanses ¶
type DBUserInvite ¶
type DBUserInvite struct { Version string `json:"version" gorm:"column:version"` InviteToken string `json:"token" gorm:"column:invite_token"` Login string `json:"login" gorm:"column:login"` Role string `json:"role" gorm:"column:role"` EMail string `json:"email" gorm:"index:idx_email,unique;column:email"` UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"` OrgSign []byte `json:"org_sign" gorm:"column:org_sign"` }
Invite User to Organization
func NewDBUserInvite ¶
func NewDBUserInvite() *DBUserInvite
func (*DBUserInvite) Hash ¶
func (i *DBUserInvite) Hash() []byte
type NFTToken ¶
type NFTToken struct { ID uint64 `json:"id"` AssetType string `json:"asset_type"` TokenType string `json:"token_type"` Name string `json:"name"` Description string `json:"description"` Symbol string `json:"symbol"` TokenUri string `json:"TokenUri" validate:"string,max=2000"` Owner string `json:"Owner,omitempty" validate:"string"` IsBurned bool `json:"IsBurned" validate:"bool"` BurnedBy string `json:"BurnedBy,omitempty" validate:"string"` BurnedDate string `json:"BurnedDate,omitempty" validate:"string"` }
type OrgInfo ¶
type OrgInfo struct { Name string `json:"name"` Logo string `json:"logo"` URL string `json:"url"` MainCoin string `json:"maincoin"` }
Information about Organization
func NewOrgInfo ¶
func NewOrgInfo() *OrgInfo
type ReqGetBalance ¶
type ReqGetBalance struct { Address string `json:"address" gorm:"column:address;primary_key"` Sign []byte `json:"sign" gorm:"column:sign"` PublicKey []byte `json:"public_key" gorm:"column:public_key"` }
func NewReqGetBalance ¶
func NewReqGetBalance() *ReqGetBalance
func (*ReqGetBalance) Deserialize ¶
func (t *ReqGetBalance) Deserialize(msg []byte) bool
func (*ReqGetBalance) Serialize ¶
func (t *ReqGetBalance) Serialize() []byte
type ReqUserInviteFromOrg ¶
type ReqUserInviteFromOrg struct { Version string `json:"version"` NodeUrl string `json:"url"` InviteToken string `json:"token"` Login string `json:"login"` EMail string `json:"email"` Role string `json:"role"` UpdatedAt time.Time `json:"updated_at"` Sign []byte `json:"sign"` }
func NewReqUserInviteFromOrg ¶
func NewReqUserInviteFromOrg() *ReqUserInviteFromOrg
func (*ReqUserInviteFromOrg) Hash ¶
func (i *ReqUserInviteFromOrg) Hash() []byte
func (*ReqUserInviteFromOrg) Init ¶
func (i *ReqUserInviteFromOrg) Init(nodeUrl string, dbui *DBUserInvite)
func (*ReqUserInviteFromOrg) Pack ¶
func (i *ReqUserInviteFromOrg) Pack() string
func (*ReqUserInviteFromOrg) Unpack ¶
func (i *ReqUserInviteFromOrg) Unpack(msg string) bool
type ReqUserRegisterToOrg ¶
type ReqUserRegisterToOrg struct { Version string `json:"version"` NodeUrl string `json:"url"` InviteToken string `json:"token"` Login string `json:"login"` EMail string `json:"email"` DisplayName string `json:"displayName"` FirstName string `json:"first_name"` MiddleName string `json:"middle_name"` LastName string `json:"last_name"` Country string `json:"country"` Locality string `json:"locality"` OrgUnit string `json:"unit"` Role string `json:"role"` PubKey []byte `json:"pubkey"` Sign []byte `json:"sign"` }
func NewReqUserRegisterToOrg ¶
func NewReqUserRegisterToOrg() *ReqUserRegisterToOrg
func (*ReqUserRegisterToOrg) Hash ¶
func (i *ReqUserRegisterToOrg) Hash() []byte
type Request ¶
type Request struct { Id string `json:"id"` UserId string `json:"user_id"` Body []byte `json:"body"` CreatedAt time.Time `json:"created_at"` Sign []byte `json:"sign"` }
Information about Organization
func NewRequest ¶
func NewRequest() *Request
type Systems ¶
type Systems struct {
Systems []System
}
func NewSystems ¶
func NewSystems() *Systems
type TokenBlock ¶
type TokenTransaction ¶
type TokenTransaction struct { AddressFrom string `json:"address_from"` AddressTo string `json:"address_to"` Coin string `json:"coin"` Value uint64 `json:"value"` MaxCost uint64 `json:"max_cost"` PublicKey []byte `json:"public_key"` Sign []byte `json:"sign"` }
func NewTokenTransaction ¶
func NewTokenTransaction() *TokenTransaction
func (*TokenTransaction) Deserialize ¶
func (t *TokenTransaction) Deserialize(msg []byte) bool
func (*TokenTransaction) Hash ¶
func (t *TokenTransaction) Hash() []byte
func (*TokenTransaction) Serialize ¶
func (t *TokenTransaction) Serialize() []byte
type UserACL ¶
type UserACL struct { Version string `json:"version" gorm:"column:version"` UserId string `json:"user_id" gorm:"column:user_id"` SystemId string `json:"system_id" gorm:"column:system_id"` Role string `json:"role" gorm:"column:role"` }
User
func NewUserACL ¶
func NewUserACL() *UserACL
type UserACLs ¶
type UserACLs struct { Version string `json:"version" gorm:"column:version"` ACLs []UserACL `json:"acls" gorm:"column:acls"` }
User
type UserGroup ¶
type UserGroup struct { Id string Name string Type string Users []*UserInGroup }
func NewUserGroup ¶
func NewUserGroup() *UserGroup
type UserInGroup ¶
func NewUserInGroup ¶
func NewUserInGroup() *UserInGroup
type UserRegister ¶
type UserRegister struct { Version string `json:"version"` Cert []byte `json:"cert"` PrivKey []byte `json:"privkey"` Sign []byte `json:"sign"` }
func NewUserRegister ¶
func NewUserRegister() *UserRegister
Click to show internal directories.
Click to hide internal directories.