datatransfer

package
v0.0.0-...-65deff2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataTransfer

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

func NewService

func NewService(repository *db.Repository, callService *call.Call) *DataTransfer

func (*DataTransfer) AddHandler

func (s *DataTransfer) AddHandler(vendorId string, messageId *string, handler Handler)

func (*DataTransfer) DataTransferReq

func (s *DataTransfer) DataTransferReq(client *ws.Client, message types.Message)

func (*DataTransfer) SendDataTransferReq

func (s *DataTransfer) SendDataTransferReq(client *ws.Client, vendorId string, messageID, data *string) (string, <-chan types.Message, error)

type DataTransferConf

type DataTransferConf struct {
	Status types.DataTransferStatus `json:"status"`
	Data   *string                  `json:"data,omitempty"`
}

func UnmarshalDataTransferConf

func UnmarshalDataTransferConf(payload interface{}) (*DataTransferConf, error)

type DataTransferReq

type DataTransferReq struct {
	VendorID  string  `json:"vendorId"`
	MessageID *string `json:"messageId,omitempty"`
	Data      *string `json:"data,omitempty"`
}

func UnmarshalDataTransferReq

func UnmarshalDataTransferReq(payload interface{}) (*DataTransferReq, error)

type Handler

type Handler interface {
	DataTransferReq(chargePoint db.ChargePoint, dataTransferReq *DataTransferReq) (types.DataTransferStatus, *string)
}

Jump to

Keyboard shortcuts

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