Documentation
¶
Index ¶
- func GetApiKey(r *http.Request) string
- func RunBillingJsonRpcServiceConsumer(apiKey string, srvPort int) (interface{}, error)
- func RunBillingJsonRpcServiceProvider(config web3pay.BillingClientConfig, port int) error
- func RunBillingRestfulServiceProvider(config web3pay.BillingClientConfig, port int) error
- func RunRestfulServiceConsumer(apiKey string, srvPort int) (interface{}, error)
- func RunSubscriptionJsonRpcServiceConsumer(apiKey string, srvPort int) (interface{}, error)
- func RunSubscriptionJsonRpcServiceProvider(config web3pay.VipSubscriptionClientConfig, port int) error
- func RunSubscriptionRestfulServiceProvider(config web3pay.VipSubscriptionClientConfig, port int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBillingJsonRpcServiceConsumer ¶
RunBillingJsonRpcServiceConsumer runs a JSON-RPC consumer once to test the demo billing service provider.
func RunBillingJsonRpcServiceProvider ¶
func RunBillingJsonRpcServiceProvider(config web3pay.BillingClientConfig, port int) error
RunBillingJsonRpcServiceProvider runs a demo JSON-RPC server to provide billing service.
func RunBillingRestfulServiceProvider ¶
func RunBillingRestfulServiceProvider(config web3pay.BillingClientConfig, port int) error
RunBillingRestfulServiceProvider runs a demo RESTful server to provide billed service.
func RunRestfulServiceConsumer ¶
RunRestfulServiceConsumer runs a RESTful consumer once to test the demo billed service provider.
func RunSubscriptionJsonRpcServiceConsumer ¶
RunSubscriptionJsonRpcServiceConsumer runs a JSON-RPC consumer once to test the demo VIP subscription service provider.
func RunSubscriptionJsonRpcServiceProvider ¶
func RunSubscriptionJsonRpcServiceProvider(config web3pay.VipSubscriptionClientConfig, port int) error
RunSubscriptionJsonRpcServiceProvider runs a demo JSON-RPC server to provide VIP subscription service.
func RunSubscriptionRestfulServiceProvider ¶
func RunSubscriptionRestfulServiceProvider(config web3pay.VipSubscriptionClientConfig, port int) error
RunSubscriptionRestfulServiceProvider runs a demo RESTful server to provide VIP subscription service.
Types ¶
This section is empty.