コード例 #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,
	}
}
コード例 #2
0
func (this *HistoryAccount) Populate(ctx context.Context, row db.HistoryAccountRecord) {
	this.ID = row.Address
	this.PT = row.PagingToken()
	this.AccountID = row.Address
}