Help us shape the future of Go! Take the 2026 Go Developer Survey

ept

package
v0.21.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// CRC16("github.com/privatix/dappctrl/messages/ept") = 0xDC36
	ErrTimeOut errors.Error = 0xDC36<<8 + iota
	ErrInvalidFormat
	ErrProdOfferAccessID
	ErrProdEndAddress
)

Errors.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout uint // In milliseconds.
}

Config is a configuration for Endpoint Message Service.

func NewConfig

func NewConfig() *Config

NewConfig creates a default Endpoint Message Service configuration.

type Message

type Message struct {
	TemplateHash           data.HexString    `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, logger log.Logger, payAddr string,
	timeout uint) (*Service, error)

New function for initialize the service for generating the Endpoint Message.

func (*Service) EndpointMessage

func (s *Service) EndpointMessage(channelID string) (*Message, error)

EndpointMessage returns the endpoint message object.

Jump to

Keyboard shortcuts

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