Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
middleware we add so rest api can be called from any domain via javascript
Types ¶
type ListType ¶
generalize our watchlist so in the future we can use this for addresses, applications and assets
type Server ¶
type Server struct {
*http.Server
LocalTime *time.Location
Sentry *sentry.Client
Algod *algod.Client
LastBlock uint64
WatchList *WatchList[string]
}
func New ¶
New is our server constructor function this function takes in paramaters from the command line and returns a server struct ready to run
func (*Server) ProcessAddress ¶
type SlimmedAccountState ¶
Click to show internal directories.
Click to hide internal directories.