ept

package
v0.0.0-...-cb3ca1d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInput             = errors.New("one or more input parameters is wrong")
	ErrTimeOut           = errors.New("timeout")
	ErrInvalidFormat     = errors.New("invalid endpoint message format")
	ErrProdOfferAccessID = errors.New("OfferAccessID from product is null")
)

Endpoint Message Template errors

Functions

This section is empty.

Types

type Message

type Message struct {
	TemplateHash           string            `json:"templateHash"`
	Username               string            `json:"username"`
	Password               string            `json:"password"`
	PaymentReceiverAddress string            `json:"paymentReceiverAddress"`
	ServiceEndpointAddress string            `json:"serviceEndpointAddress"`
	AdditionalParams       map[string]string `json:"additionalParams"`
}

Message structure for Endpoint Message

type Service

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

Service for generation Endpoint Message

func New

func New(db *reform.DB, payAddr string) (*Service, error)

New function for initialize the service for generating the Endpoint Message

func (*Service) EndpointMessage

func (s *Service) EndpointMessage(channelID string,
	timeout time.Duration) (*Message, error)

EndpointMessage returns the endpoint message object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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