Documentation ¶
Index ¶
- type APIService
- func (api *APIService) CreateAccount(c *gin.Context)
- func (api *APIService) DeleteAccount(c *gin.Context)
- func (api *APIService) GetAccount(c *gin.Context)
- func (api *APIService) GetTokenList(c *gin.Context)
- func (api *APIService) ListAccounts(c *gin.Context)
- func (api *APIService) ListPairs(c *gin.Context)
- func (api *APIService) ListPools(c *gin.Context)
- func (api *APIService) Serve() error
- func (api *APIService) Start() error
- func (api *APIService) Stop() error
- func (api *APIService) SwitchNetwork(networkParam common.NetworkID, incclient *incclient.IncClient) error
- func (api *APIService) UpdateAccount(c *gin.Context)
- func (api *APIService) WatchToken(c *gin.Context)
- type NetworkController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
func InitAPIService ¶
func InitAPIService(address string, wlm *walletmanager.WalletManager, networkController NetworkController) (*APIService, error)
func (*APIService) CreateAccount ¶
func (api *APIService) CreateAccount(c *gin.Context)
func (*APIService) DeleteAccount ¶
func (api *APIService) DeleteAccount(c *gin.Context)
func (*APIService) GetAccount ¶
func (api *APIService) GetAccount(c *gin.Context)
func (*APIService) GetTokenList ¶
func (api *APIService) GetTokenList(c *gin.Context)
func (*APIService) ListAccounts ¶
func (api *APIService) ListAccounts(c *gin.Context)
func (*APIService) ListPairs ¶
func (api *APIService) ListPairs(c *gin.Context)
func (*APIService) ListPools ¶
func (api *APIService) ListPools(c *gin.Context)
func (*APIService) Serve ¶
func (api *APIService) Serve() error
func (*APIService) Start ¶
func (api *APIService) Start() error
func (*APIService) Stop ¶
func (api *APIService) Stop() error
func (*APIService) SwitchNetwork ¶
func (*APIService) UpdateAccount ¶
func (api *APIService) UpdateAccount(c *gin.Context)
func (*APIService) WatchToken ¶
func (api *APIService) WatchToken(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.