service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CentralSystem

type CentralSystem interface {
	Send(cpreq.ChargePointRequest) (cpresp.ChargePointResponse, error)
}

func NewCentralSystemJSON

func NewCentralSystemJSON(conn *ws.Conn) CentralSystem

func NewCentralSystemSOAP

func NewCentralSystemSOAP(csURL string, options *soap.CallOptions) CentralSystem

type CentralSystemJSON

type CentralSystemJSON struct {
	*JSON
}

func (*CentralSystemJSON) Send

type CentralSystemSOAP

type CentralSystemSOAP struct {
	*SOAP
}

func (*CentralSystemSOAP) Send

type ChargePoint

type ChargePoint interface {
	Send(csreq.CentralSystemRequest) (csresp.CentralSystemResponse, error)
}

func NewChargePointJSON

func NewChargePointJSON(conn *ws.Conn) ChargePoint

func NewChargePointSOAP

func NewChargePointSOAP(csURL string, options *soap.CallOptions) ChargePoint

type ChargePointJSON

type ChargePointJSON struct {
	*JSON
}

func (*ChargePointJSON) Send

type ChargePointSOAP

type ChargePointSOAP struct {
	*SOAP
}

func (*ChargePointSOAP) Send

type JSON

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

func NewJSON

func NewJSON(conn *ws.Conn) *JSON

NewJSON before calling it, you should be reading messages from the connection as to get the responses back:

go func() {
	for {
		conn.ReadMessage()
	}
}()

func (*JSON) Send

func (service *JSON) Send(req messages.Request) (messages.Response, error)

type SOAP

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

func NewSOAP

func NewSOAP(URL string, options *soap.CallOptions) *SOAP

func (*SOAP) Send

func (service *SOAP) Send(req messages.Request) (messages.Response, error)

type Service

type Service interface {
	Send(request messages.Request) (messages.Response, error)
}

Jump to

Keyboard shortcuts

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