Exemplo n.º 1
0
// NewHistoryAccountResource creates a new resource from a db.HistoryAccountRecord
func NewHistoryAccountResource(in db.HistoryAccountRecord) HistoryAccountResource {
	return HistoryAccountResource{
		ID:          in.Address,
		PagingToken: in.PagingToken(),
		Address:     in.Address,
	}
}
Exemplo n.º 2
0
func (this *HistoryAccount) Populate(ctx context.Context, row db.HistoryAccountRecord) {
	this.ID = row.Address
	this.PT = row.PagingToken()
	this.AccountID = row.Address
}