cpresp

package
v1.0.1-0...-deaadd6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotChargePointResponse = errors.New("not a chargepoint response")
)

Functions

This section is empty.

Types

type Authorize

type Authorize struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ authorizeResponse"`

	IdTagInfo *IdTagInfo `json:"idTagInfo" xml:"idTagInfo,omitempty"`
	// contains filtered or unexported fields
}

Authorize

func (*Authorize) IsChargePointResponse

func (cpreq *Authorize) IsChargePointResponse()

func (*Authorize) IsResponse

func (cpreq *Authorize) IsResponse()

func (*Authorize) MarshalJSON

func (m *Authorize) MarshalJSON() ([]byte, error)

func (*Authorize) UnmarshalJSON

func (m *Authorize) UnmarshalJSON(b []byte) error

type BootNotification

type BootNotification struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ bootNotificationResponse"`

	Status      string    `json:"status" xml:"status,omitempty"`
	CurrentTime time.Time `json:"currentTime" xml:"currentTime,omitempty"`

	// Interval in 1.5 is heartbeatInterval
	Interval float64 `json:"interval" xml:"heartbeatInterval,omitempty"`
	// contains filtered or unexported fields
}

BootNotification

func (*BootNotification) IsChargePointResponse

func (cpreq *BootNotification) IsChargePointResponse()

func (*BootNotification) IsResponse

func (cpreq *BootNotification) IsResponse()

func (*BootNotification) MarshalJSON

func (m *BootNotification) MarshalJSON() ([]byte, error)

func (*BootNotification) UnmarshalJSON

func (m *BootNotification) UnmarshalJSON(b []byte) error

type ChargePointResponse

type ChargePointResponse interface {
	messages.Response
	IsChargePointResponse()
}

ChargePointResponse is a response coming from the central system to the chargepoint

type DataTransfer

type DataTransfer struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ dataTransferResponse"`

	Data   string `json:"data, xml:"data,omitempty"omitempty"`
	Status string `json:"status" xml:"status,omitempty"`
	// contains filtered or unexported fields
}

DataTransfer

func (*DataTransfer) IsChargePointResponse

func (cpreq *DataTransfer) IsChargePointResponse()

func (*DataTransfer) IsResponse

func (cpreq *DataTransfer) IsResponse()

func (*DataTransfer) MarshalJSON

func (m *DataTransfer) MarshalJSON() ([]byte, error)

func (*DataTransfer) UnmarshalJSON

func (m *DataTransfer) UnmarshalJSON(b []byte) error

type DiagnosticsStatusNotification

type DiagnosticsStatusNotification struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ diagnosticsStatusNotificationResponse"`
	// contains filtered or unexported fields
}

DiagnosticsStatusNotification

func (*DiagnosticsStatusNotification) IsChargePointResponse

func (cpreq *DiagnosticsStatusNotification) IsChargePointResponse()

func (*DiagnosticsStatusNotification) IsResponse

func (cpreq *DiagnosticsStatusNotification) IsResponse()

func (*DiagnosticsStatusNotification) MarshalJSON

func (m *DiagnosticsStatusNotification) MarshalJSON() ([]byte, error)

func (*DiagnosticsStatusNotification) UnmarshalJSON

func (m *DiagnosticsStatusNotification) UnmarshalJSON(b []byte) error

type FirmwareStatusNotification

type FirmwareStatusNotification struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ firmwareStatusNotificationResponse"`
	// contains filtered or unexported fields
}

FirmwareStatusNotification

func (*FirmwareStatusNotification) IsChargePointResponse

func (cpreq *FirmwareStatusNotification) IsChargePointResponse()

func (*FirmwareStatusNotification) IsResponse

func (cpreq *FirmwareStatusNotification) IsResponse()

func (*FirmwareStatusNotification) MarshalJSON

func (m *FirmwareStatusNotification) MarshalJSON() ([]byte, error)

func (*FirmwareStatusNotification) UnmarshalJSON

func (m *FirmwareStatusNotification) UnmarshalJSON(b []byte) error

type Heartbeat

type Heartbeat struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ heartbeatResponse"`

	CurrentTime time.Time `json:"currentTime" xml:"currentTime,omitempty"`
	// contains filtered or unexported fields
}

Heartbeat

func (*Heartbeat) IsChargePointResponse

func (cpreq *Heartbeat) IsChargePointResponse()

func (*Heartbeat) IsResponse

func (cpreq *Heartbeat) IsResponse()

func (*Heartbeat) MarshalJSON

func (m *Heartbeat) MarshalJSON() ([]byte, error)

func (*Heartbeat) UnmarshalJSON

func (m *Heartbeat) UnmarshalJSON(b []byte) error

type IdTagInfo

type IdTagInfo struct {
	ExpiryDate  *time.Time `json:"expiryDate,omitempty" xml:"expiryDate,omitempty"`
	ParentIdTag string     `json:"parentIdTag,omitempty" xml:"parentIdTag,omitempty"`
	Status      string     `json:"status" xml:"status,omitempty"`
}

IdTagInfo

func (*IdTagInfo) MarshalJSON

func (m *IdTagInfo) MarshalJSON() ([]byte, error)

func (*IdTagInfo) UnmarshalJSON

func (m *IdTagInfo) UnmarshalJSON(b []byte) error

type MeterValues

type MeterValues struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ meterValuesResponse"`
	// contains filtered or unexported fields
}

MeterValues

func (*MeterValues) IsChargePointResponse

func (cpreq *MeterValues) IsChargePointResponse()

func (*MeterValues) IsResponse

func (cpreq *MeterValues) IsResponse()

func (*MeterValues) MarshalJSON

func (m *MeterValues) MarshalJSON() ([]byte, error)

func (*MeterValues) UnmarshalJSON

func (m *MeterValues) UnmarshalJSON(b []byte) error

type StartTransaction

type StartTransaction struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ startTransactionResponse"`

	IdTagInfo     *IdTagInfo `json:"idTagInfo" xml:"idTagInfo,omitempty"`
	TransactionId int32      `json:"transactionId" xml:"transactionId,omitempty"`
	// contains filtered or unexported fields
}

StartTransaction

func (*StartTransaction) IsChargePointResponse

func (cpreq *StartTransaction) IsChargePointResponse()

func (*StartTransaction) IsResponse

func (cpreq *StartTransaction) IsResponse()

func (*StartTransaction) MarshalJSON

func (m *StartTransaction) MarshalJSON() ([]byte, error)

func (*StartTransaction) UnmarshalJSON

func (m *StartTransaction) UnmarshalJSON(b []byte) error

type StatusNotification

type StatusNotification struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ statusNotificationResponse"`
	// contains filtered or unexported fields
}

StatusNotification

func (*StatusNotification) IsChargePointResponse

func (cpreq *StatusNotification) IsChargePointResponse()

func (*StatusNotification) IsResponse

func (cpreq *StatusNotification) IsResponse()

func (*StatusNotification) MarshalJSON

func (m *StatusNotification) MarshalJSON() ([]byte, error)

func (*StatusNotification) UnmarshalJSON

func (m *StatusNotification) UnmarshalJSON(b []byte) error

type StopTransaction

type StopTransaction struct {
	XMLName xml.Name `json:"-" xml:"urn://Ocpp/Cs/2012/06/ stopTransactionResponse"`

	IdTagInfo *IdTagInfo `json:"idTagInfo, xml:"idTagInfo,omitempty"omitempty"`
	// contains filtered or unexported fields
}

StopTransaction

func (*StopTransaction) IsChargePointResponse

func (cpreq *StopTransaction) IsChargePointResponse()

func (*StopTransaction) IsResponse

func (cpreq *StopTransaction) IsResponse()

func (*StopTransaction) MarshalJSON

func (m *StopTransaction) MarshalJSON() ([]byte, error)

func (*StopTransaction) UnmarshalJSON

func (m *StopTransaction) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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