globitex

package
v0.0.0-...-21b887b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderSignature

func HeaderSignature(apiKey, secret, path, nonce string, params []Param) string

func Mux

func Mux(handler http.Handler) http.Handler

func Nonce

func Nonce() string

func TransactionSignature

func TransactionSignature(secret string, params []Param) string

func ValidateRequest

func ValidateRequest(req *http.Request) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) CreateNewPayment

func (c *Client) CreateNewPayment(params []Param) (Response, error)

func (*Client) GetAccountStatus

func (c *Client) GetAccountStatus() (Response, error)

func (*Client) GetDepositDetails

func (c *Client) GetDepositDetails() (Response, error)

func (*Client) GetPaymentCommissionAmount

func (c *Client) GetPaymentCommissionAmount(params []Param) (Response, error)

func (*Client) GetPaymentHistory

func (c *Client) GetPaymentHistory() (Response, error)

func (*Client) GetPaymentStatus

func (c *Client) GetPaymentStatus(params []Param) (Response, error)

type Param

type Param struct {
	Key   string
	Value string
}

type Response

type Response struct {
	Body string
	Code int
}

type ResponseError

type ResponseError struct {
	// contains filtered or unexported fields
}

func (*ResponseError) Error

func (re *ResponseError) Error() string

Jump to

Keyboard shortcuts

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