Documentation ¶
Index ¶
- type DataTransfer
- func (s *DataTransfer) AddHandler(vendorId string, messageId *string, handler Handler)
- func (s *DataTransfer) DataTransferReq(client *ws.Client, message types.Message)
- func (s *DataTransfer) SendDataTransferReq(client *ws.Client, vendorId string, messageID, data *string) (string, <-chan types.Message, error)
- type DataTransferConf
- type DataTransferReq
- type Handler
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)
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)
}
Click to show internal directories.
Click to hide internal directories.