Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

coins state

Back to all declarations

renderHomepage

func() string
Open
OID
070cbb…84ed:7
renderHomepage details

Inspect func

renderBalances

func(req *v0.Request) string
Open
OID
070cbb…84ed:8
renderBalances details

Inspect func

renderSingleCoinBalance

func(denom string, addr string, origInput string, wasConverted bool, amount int64) string

amount is taken from the balances the caller already read, rather than read again. Beyond saving the read, it keeps an unvalidated denom out of the banker: denom is the "coin" query parameter, and GetCoin panics on a malformed one, so on a render path any URL could otherwise break the page.

Open
OID
070cbb…84ed:9
renderSingleCoinBalance details

Inspect func

renderConvertedAddress

func(addr string) string
Open
OID
070cbb…84ed:10
renderConvertedAddress details

Inspect func

getSortField

func(req *v0.Request) string

Helper functions for sorting and pagination

Open
OID
070cbb…84ed:11
getSortField details

Inspect func

isSortReversed

func(req *v0.Request) bool
Open
OID
070cbb…84ed:12
isSortReversed details

Inspect func
router : *v0.Router Inspect
init.1 : func() Inspect
Render : func(path string) string Inspect
renderHomepage : func() string Inspect
renderBalances : func(req *v0.Request) string Inspect
renderSingleCoinBalance : func(denom string, addr string, origInput string, wasConverted bool, amount int64) string Inspect
renderConvertedAddress : func(addr string) string Inspect
getSortField : func(req *v0.Request) string Inspect
isSortReversed : func(req *v0.Request) bool Inspect