Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAllAccountDetailResponse ¶
type APIAllAccountDetailResponse struct {
Result []store.AccountDetail `json:"result"`
}
APIAllAccountDetailResponse holds all stored account details.
type APIAllMonitoredAccountResponse ¶
type APIAllMonitoredAccountResponse struct {
Result map[string]*store.AccountDetail `json:"result"`
}
APIAllMonitoredAccountResponse holds all monitored account.
type APIAllTokenDetailResponse ¶
type APIAllTokenDetailResponse struct {
Result map[string]store.TokenDetail `json:"result"`
}
APIAllTokenDetailResponse holds all stored account details.
type APIResponse ¶
type APIResponse struct { Error string `json:"error,omitempty"` Data interface{} `json:"data,omitempty"` }
func NewAPIJSONResponse ¶
func NewAPIJSONResponse(c *gin.Context, data interface{}, err error) APIResponse
NewAPIJSONResponse creates a new APIResponse with given data. It also sets the header "Content-Type" to "application/json".
func NewAPIResponse ¶
func NewAPIResponse(c *gin.Context, data interface{}, err error) APIResponse
NewAPIResponse creates a new APIResponse with given data.
Click to show internal directories.
Click to hide internal directories.