Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSecret(username string) (secret string, err error)
- func DoWithdrawals(ctx context.Context, username string) error
- func PaymentCallbackUrl(ctx context.Context, paymentId string) (string, error)
- func PaymentComplete(ctx context.Context, paymentId string) error
- func PaymentCreateProcess(ctx context.Context, username string, amount uint64, ...) (string, error)
- func PaymentPageDetails(ctx context.Context, paymentId string) (t *template.Template, amount uint64, acceptUrl, cancelUrl string, ...)
- func PaymentReceived(ctx context.Context, paymentId string) error
- func Run()
- func TemplateFetch(ctx context.Context, username string) (templateStr string, err error)
- func TemplateUpdate(ctx context.Context, username, templateStr string) error
- func UserLogin(ctx context.Context, username, password string) error
- func UserRegister(ctx context.Context, username, password, walletAddress string) error
- type HealthStatus
- type Payment
Constants ¶
View Source
const Version = "0.0.0"
Variables ¶
View Source
var Config config
View Source
var CreatePaymentPage *template.Template
View Source
var FailPage *template.Template
View Source
var Homepage *template.Template
View Source
var LoginPage *template.Template
View Source
var MerchantPanel *template.Template
View Source
var RegisterPage *template.Template
View Source
var SuccessPage *template.Template
Functions ¶
func CreateSecret ¶
func PaymentCallbackUrl ¶
func PaymentCreateProcess ¶
func PaymentPageDetails ¶
func TemplateFetch ¶
Types ¶
type HealthStatus ¶
type HealthStatus struct { Status int `json:"status"` Services struct { PostgreSQL bool `json:"postgresql"` MoneroPay bool `json:"moneropay"` } `json:"services"` }
func Health ¶
func Health(ctx context.Context) HealthStatus
Click to show internal directories.
Click to hide internal directories.