service

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(cfg *config.Config) *Service

func (*Service) AddressEnrolment

func (s *Service) AddressEnrolment(btyAddr, btcAddr string) error

func (*Service) AddressRetrieve

func (s *Service) AddressRetrieve(addr string) (*model.AddrBackup, error)

func (Service) Config

func (s Service) Config() *config.Config

func (*Service) EditMnemonic

func (s *Service) EditMnemonic(addr, mne string) error

func (*Service) EmailBinding

func (s *Service) EmailBinding(addr, email, code, mnemonic string) error

func (*Service) EmailBindingV2

func (s *Service) EmailBindingV2(addr, email, code, mnemonic string) error

func (*Service) EmailExport

func (s *Service) EmailExport(addr, email, code string) (bool, error)

func (*Service) EmailIsBound

func (s *Service) EmailIsBound(email string) (bool, error)

--------------------email-------------//

func (*Service) EmailRetrieve

func (s *Service) EmailRetrieve(email, code string) (*model.AddrBackup, error)

func (*Service) GetAddress

func (s *Service) GetAddress(req *model.GetAddressRequest) (res *model.GetAddressResponse, err error)

func (*Service) PhoneBinding

func (s *Service) PhoneBinding(addr, area, phone, code, mnemonic string) error

func (*Service) PhoneBindingV2

func (s *Service) PhoneBindingV2(addr, area, phone, code, mnemonic string) error

func (*Service) PhoneExport

func (s *Service) PhoneExport(addr, area, phone, code string) (bool, error)

func (*Service) PhoneIsBound

func (s *Service) PhoneIsBound(area, phone string) (bool, error)

func (*Service) PhoneRelate

func (s *Service) PhoneRelate(addr, area, phone, mnemonic string) error

关联手机号

func (*Service) PhoneRetrieve

func (s *Service) PhoneRetrieve(area, phone, code string) (*model.AddrBackup, error)

func (*Service) Ping

func (s *Service) Ping() error

func (*Service) SendEmailCode

func (s *Service) SendEmailCode(codeType, email string) error

func (*Service) SendPhoneCode

func (s *Service) SendPhoneCode(codeType, phone string) error

Directories

Path Synopsis
sms

Jump to

Keyboard shortcuts

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