service

package
v0.0.0-...-fdc2919 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestMint

type RequestMint struct {
	Address    string `json:"address"`
	PaymentID  string `json:"payment_id"`
	EthAddress string `json:"eth_address"` // the address to send the minted wXMR to
}

RequestMint is used to request a minting of wXMR

type RequestReserveProof

type RequestReserveProof struct {
	Message string `json:"message"` // the message to sign
}

RequestReserveProof is used to request a proof that all of the wallets balance is disposable

type ResponseGetDepositAddress

type ResponseGetDepositAddress struct {
	Address   string `json:"address"`
	PaymentID string `json:"payment_id"`
}

ResponseGetDepositAddress returns an address to use to deposit monero into

type ResponseReserveProof

type ResponseReserveProof struct {
	ReserveAddress string `json:"reserve_address"`
	Signature      string `json:"signature"`
}

type Service

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

func NewService

func NewService(ctx context.Context, cfg *config.Config) (*Service, error)

func (*Service) Serve

func (s *Service) Serve(ctx context.Context) error

func (*Service) WaitClosed

func (s *Service) WaitClosed()

Jump to

Keyboard shortcuts

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