demo

package
v0.0.0-...-dc3c4d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiKey

func GetApiKey(r *http.Request) string

func RunBillingJsonRpcServiceConsumer

func RunBillingJsonRpcServiceConsumer(apiKey string, srvPort int) (interface{}, error)

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

func RunRestfulServiceConsumer(apiKey string, srvPort int) (interface{}, error)

RunRestfulServiceConsumer runs a RESTful consumer once to test the demo billed service provider.

func RunSubscriptionJsonRpcServiceConsumer

func RunSubscriptionJsonRpcServiceConsumer(apiKey string, srvPort int) (interface{}, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL