Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceController ¶
type BalanceController struct{}
BalanceController define a balance struct
func (BalanceController) CheckBalance ¶
func (b BalanceController) CheckBalance(c *gin.Context)
CheckBalance verifies is the customer has enough money to make a call
type CustomerRateController ¶
type CustomerRateController struct{}
CustomerRateController define a balance struct
func (CustomerRateController) CheckCustomerRate ¶
func (b CustomerRateController) CheckCustomerRate(c *gin.Context)
CheckCustomerRate verifies is the customer has enough money to make a call
type DirectionController ¶
type DirectionController struct{}
DirectionController define a balance struct
func (DirectionController) CheckDirection ¶
func (d DirectionController) CheckDirection(c *gin.Context)
CheckDirection determines the direction for a E.164 phone number (without +)
type HealthController ¶
type HealthController struct{}
HealthController defines a health struct
func (HealthController) Status ¶
func (h HealthController) Status(c *gin.Context)
Status handles the server status request
type OutboundRouteController ¶
type OutboundRouteController struct{}
OutboundRouteController define a balance struct
func (OutboundRouteController) AvailableRoutes ¶
func (o OutboundRouteController) AvailableRoutes(c *gin.Context)
AvailableRoutes verifies is the customer has enough money to make a call
type RatecardController ¶
type RatecardController struct{}
RatecardController define a balance struct
func (RatecardController) CheckRatecard ¶
func (r RatecardController) CheckRatecard(c *gin.Context)
CheckRatecard verifies is the customer has enough money to make a call