nowpayments

package
v0.0.0-...-6ceb869 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package nowpayments is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Webhook    string
	ListenPort string
	APIToken   string
	IPNSecret  string
	APIUrl     string
	Username   string
	Password   string
}

type INowpayment

type INowpayment interface {
	CreatePayment(party *store.TwitterParty) error
	UpdatePayment(party *store.TwitterParty) error
}

type MockINowpayment

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

MockINowpayment is a mock of INowpayment interface.

func NewMockINowpayment

func NewMockINowpayment(ctrl *gomock.Controller) *MockINowpayment

NewMockINowpayment creates a new mock instance.

func (*MockINowpayment) CreatePayment

func (m *MockINowpayment) CreatePayment(party *store.TwitterParty) error

CreatePayment mocks base method.

func (*MockINowpayment) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockINowpayment) UpdatePayment

func (m *MockINowpayment) UpdatePayment(party *store.TwitterParty) error

UpdatePayment mocks base method.

type MockINowpaymentMockRecorder

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

MockINowpaymentMockRecorder is the mock recorder for MockINowpayment.

func (*MockINowpaymentMockRecorder) CreatePayment

func (mr *MockINowpaymentMockRecorder) CreatePayment(party any) *gomock.Call

CreatePayment indicates an expected call of CreatePayment.

func (*MockINowpaymentMockRecorder) UpdatePayment

func (mr *MockINowpaymentMockRecorder) UpdatePayment(party any) *gomock.Call

UpdatePayment indicates an expected call of UpdatePayment.

type NowPayments

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

func NewNowPayments

func NewNowPayments(cfg *Config) (*NowPayments, error)

func (*NowPayments) CreatePayment

func (s *NowPayments) CreatePayment(party *store.TwitterParty) error

func (*NowPayments) UpdatePayment

func (s *NowPayments) UpdatePayment(party *store.TwitterParty) error

Jump to

Keyboard shortcuts

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