Go-bitswap has realized the logic of credit, strategy and ledger in the IPFS white paper?

I looked at the source code and seems to only count the fields such as BytesSent, BytesRecv, but not for credit or ledger. peer connection or sending block, the credits and ledger were not verified at the time of the peer.
Can anyone tell me where credit, strategy, and ledger are realized?