api

package
v0.0.0-...-ef5567d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionResource

type ActionResource interface {
	Action(response http.ResponseWriter, requestData *RequestData)
}

type Controller

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

type ControllerInterface

type ControllerInterface interface {
	// contains filtered or unexported methods
}

func NewImportController

func NewImportController(referential *core.Referential) ControllerInterface

func NewLineController

func NewLineController(referential *core.Referential) ControllerInterface

func NewLineGroupsController

func NewLineGroupsController(referential *core.Referential) ControllerInterface

func NewOperatorController

func NewOperatorController(referential *core.Referential) ControllerInterface

func NewPartnerController

func NewPartnerController(referential *core.Referential) ControllerInterface

func NewReferentialController

func NewReferentialController(server *Server) ControllerInterface

func NewScheduledStopVisitController

func NewScheduledStopVisitController(referential *core.Referential) ControllerInterface

func NewSituationController

func NewSituationController(referential *core.Referential) ControllerInterface

func NewStatusController

func NewStatusController(server *Server) ControllerInterface

func NewStopAreaController

func NewStopAreaController(referential *core.Referential) ControllerInterface

func NewStopAreaGroupsController

func NewStopAreaGroupsController(referential *core.Referential) ControllerInterface

func NewStopVisitController

func NewStopVisitController(referential *core.Referential) ControllerInterface

func NewTimeController

func NewTimeController(server *Server) ControllerInterface

func NewVehicleController

func NewVehicleController(referential *core.Referential) ControllerInterface

func NewVehicleJourneyController

func NewVehicleJourneyController(referential *core.Referential) ControllerInterface

type GraphqlHandler

type GraphqlHandler struct {
	rah.RemoteAddressHandler
	// contains filtered or unexported fields
}

func NewGraphqlHandler

func NewGraphqlHandler(referential *core.Referential, token string) *GraphqlHandler

type GtfsHandler

type GtfsHandler struct {
	rah.RemoteAddressHandler
	// contains filtered or unexported fields
}

func NewGtfsHandler

func NewGtfsHandler(referential *core.Referential, token string) *GtfsHandler

type HandlerParams

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

type ImportController

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

type ImportRequest

type ImportRequest struct {
	Force bool
}

type LineController

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

func (*LineController) Create

func (controller *LineController) Create(response http.ResponseWriter, body []byte)

func (*LineController) Delete

func (controller *LineController) Delete(response http.ResponseWriter, identifier string)

func (*LineController) Index

func (controller *LineController) Index(response http.ResponseWriter, filters url.Values)

func (*LineController) Show

func (controller *LineController) Show(response http.ResponseWriter, identifier string)

func (*LineController) Update

func (controller *LineController) Update(response http.ResponseWriter, identifier string, body []byte)

type LineGroupsController

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

func (*LineGroupsController) Create

func (controller *LineGroupsController) Create(response http.ResponseWriter, body []byte)

func (*LineGroupsController) Delete

func (controller *LineGroupsController) Delete(response http.ResponseWriter, identifier string)

func (*LineGroupsController) Index

func (controller *LineGroupsController) Index(response http.ResponseWriter, filters url.Values)

func (*LineGroupsController) Show

func (controller *LineGroupsController) Show(response http.ResponseWriter, identifier string)

func (*LineGroupsController) Update

func (controller *LineGroupsController) Update(response http.ResponseWriter, identifier string, body []byte)

type OperatorController

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

func (*OperatorController) Create

func (controller *OperatorController) Create(response http.ResponseWriter, body []byte)

func (*OperatorController) Delete

func (controller *OperatorController) Delete(response http.ResponseWriter, identifier string)

func (*OperatorController) Index

func (controller *OperatorController) Index(response http.ResponseWriter, filters url.Values)

func (*OperatorController) Show

func (controller *OperatorController) Show(response http.ResponseWriter, identifier string)

func (*OperatorController) Update

func (controller *OperatorController) Update(response http.ResponseWriter, identifier string, body []byte)

type PartnerController

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

func (*PartnerController) Action

func (controller *PartnerController) Action(response http.ResponseWriter, requestData *RequestData)

func (*PartnerController) Create

func (controller *PartnerController) Create(response http.ResponseWriter, body []byte)

func (*PartnerController) Delete

func (controller *PartnerController) Delete(response http.ResponseWriter, identifier string)

func (*PartnerController) Index

func (controller *PartnerController) Index(response http.ResponseWriter, filters url.Values)

func (*PartnerController) Save

func (controller *PartnerController) Save(response http.ResponseWriter)

func (*PartnerController) Show

func (controller *PartnerController) Show(response http.ResponseWriter, identifier string)

func (*PartnerController) Update

func (controller *PartnerController) Update(response http.ResponseWriter, identifier string, body []byte)

type PushHandler

type PushHandler struct {
	rah.RemoteAddressHandler
	// contains filtered or unexported fields
}

func NewPushHandler

func NewPushHandler(referential *core.Referential, token string) *PushHandler

type ReferentialController

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

func (*ReferentialController) Action

func (controller *ReferentialController) Action(response http.ResponseWriter, requestData *RequestData)

func (*ReferentialController) Create

func (controller *ReferentialController) Create(response http.ResponseWriter, body []byte)

func (*ReferentialController) Delete

func (controller *ReferentialController) Delete(response http.ResponseWriter, identifier string)

func (*ReferentialController) Index

func (controller *ReferentialController) Index(response http.ResponseWriter, filters url.Values)

func (*ReferentialController) Save

func (controller *ReferentialController) Save(response http.ResponseWriter)

func (*ReferentialController) Show

func (controller *ReferentialController) Show(response http.ResponseWriter, identifier string)

func (*ReferentialController) Update

func (controller *ReferentialController) Update(response http.ResponseWriter, identifier string, body []byte)

type RequestData

type RequestData struct {
	Filters     url.Values
	Body        []byte
	Method      string
	Referential string
	Resource    string
	Id          string
	Action      string
	Url         string
}

func NewRequestDataFromContent

func NewRequestDataFromContent(params []string) *RequestData

type RestfulResource

type RestfulResource interface {
	Index(response http.ResponseWriter, filters url.Values)
	Show(response http.ResponseWriter, identifier string)
	Delete(response http.ResponseWriter, identifier string)
	Update(response http.ResponseWriter, identifier string, body []byte)
	Create(response http.ResponseWriter, body []byte)
}

type SIRICheckStatusRequestHandler

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

func (*SIRICheckStatusRequestHandler) ConnectorType

func (handler *SIRICheckStatusRequestHandler) ConnectorType() string

func (*SIRICheckStatusRequestHandler) RequestorRef

func (handler *SIRICheckStatusRequestHandler) RequestorRef() string

func (*SIRICheckStatusRequestHandler) Respond

func (handler *SIRICheckStatusRequestHandler) Respond(params HandlerParams)

type SIRIDeleteSubscriptionRequestHandler

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

func (*SIRIDeleteSubscriptionRequestHandler) ConnectorType

func (handler *SIRIDeleteSubscriptionRequestHandler) ConnectorType() string

func (*SIRIDeleteSubscriptionRequestHandler) RequestorRef

func (handler *SIRIDeleteSubscriptionRequestHandler) RequestorRef() string

func (*SIRIDeleteSubscriptionRequestHandler) Respond

func (handler *SIRIDeleteSubscriptionRequestHandler) Respond(params HandlerParams)

type SIRIError

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

func (SIRIError) Send

func (e SIRIError) Send()

type SIRIEstimatedTimetableRequestDeliveriesResponseHandler

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

func (*SIRIEstimatedTimetableRequestDeliveriesResponseHandler) ConnectorType

func (*SIRIEstimatedTimetableRequestDeliveriesResponseHandler) RequestorRef

func (*SIRIEstimatedTimetableRequestDeliveriesResponseHandler) Respond

type SIRIEstimatedTimetableRequestHandler

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

func (*SIRIEstimatedTimetableRequestHandler) ConnectorType

func (handler *SIRIEstimatedTimetableRequestHandler) ConnectorType() string

func (*SIRIEstimatedTimetableRequestHandler) RequestorRef

func (handler *SIRIEstimatedTimetableRequestHandler) RequestorRef() string

func (*SIRIEstimatedTimetableRequestHandler) Respond

func (handler *SIRIEstimatedTimetableRequestHandler) Respond(params HandlerParams)

type SIRIGeneralMessageRequestDeliveriesResponseHandler

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

func (*SIRIGeneralMessageRequestDeliveriesResponseHandler) ConnectorType

func (*SIRIGeneralMessageRequestDeliveriesResponseHandler) RequestorRef

func (*SIRIGeneralMessageRequestDeliveriesResponseHandler) Respond

type SIRIGeneralMessageRequestHandler

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

func (*SIRIGeneralMessageRequestHandler) ConnectorType

func (handler *SIRIGeneralMessageRequestHandler) ConnectorType() string

func (*SIRIGeneralMessageRequestHandler) RequestorRef

func (handler *SIRIGeneralMessageRequestHandler) RequestorRef() string

func (*SIRIGeneralMessageRequestHandler) Respond

func (handler *SIRIGeneralMessageRequestHandler) Respond(params HandlerParams)

type SIRIHandler

type SIRIHandler struct {
	rah.RemoteAddressHandler
	// contains filtered or unexported fields
}

func NewSIRIHandler

func NewSIRIHandler(referential *core.Referential) *SIRIHandler

type SIRILinesDiscoveryRequestHandler

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

func (*SIRILinesDiscoveryRequestHandler) ConnectorType

func (handler *SIRILinesDiscoveryRequestHandler) ConnectorType() string

func (*SIRILinesDiscoveryRequestHandler) RequestorRef

func (handler *SIRILinesDiscoveryRequestHandler) RequestorRef() string

func (*SIRILinesDiscoveryRequestHandler) Respond

func (handler *SIRILinesDiscoveryRequestHandler) Respond(params HandlerParams)

type SIRILiteHandler

type SIRILiteHandler struct {
	rah.RemoteAddressHandler
	// contains filtered or unexported fields
}

func NewSIRILiteHandler

func NewSIRILiteHandler(referential *core.Referential, token string) *SIRILiteHandler

type SIRILiteRequestHandler

type SIRILiteRequestHandler interface {
	ConnectorType() string
	Respond(core.Connector, http.ResponseWriter, *audit.BigQueryMessage)
}

type SIRILiteVehicleMonitoringRequestHandler

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

func (*SIRILiteVehicleMonitoringRequestHandler) ConnectorType

func (handler *SIRILiteVehicleMonitoringRequestHandler) ConnectorType() string

func (*SIRILiteVehicleMonitoringRequestHandler) Respond

type SIRINotifySubscriptionTerminatedHandler

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

func (*SIRINotifySubscriptionTerminatedHandler) ConnectorType

func (handler *SIRINotifySubscriptionTerminatedHandler) ConnectorType() string

func (*SIRINotifySubscriptionTerminatedHandler) RequestorRef

func (handler *SIRINotifySubscriptionTerminatedHandler) RequestorRef() string

func (*SIRINotifySubscriptionTerminatedHandler) Respond

func (handler *SIRINotifySubscriptionTerminatedHandler) Respond(params HandlerParams)

type SIRIRequestData

type SIRIRequestData struct {
	Filters     url.Values
	Referential string
	Request     string
	Url         string
}

func NewSIRIRequestDataFromContent

func NewSIRIRequestDataFromContent(params []string) (*SIRIRequestData, bool)

type SIRIRequestHandler

type SIRIRequestHandler interface {
	RequestorRef() string
	ConnectorType() string
	Respond(HandlerParams)
}

type SIRIServiceRequestHandler

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

func (*SIRIServiceRequestHandler) ConnectorType

func (handler *SIRIServiceRequestHandler) ConnectorType() string

func (*SIRIServiceRequestHandler) RequestorRef

func (handler *SIRIServiceRequestHandler) RequestorRef() string

func (*SIRIServiceRequestHandler) Respond

func (handler *SIRIServiceRequestHandler) Respond(params HandlerParams)

type SIRISituationExchangeDeliveriesResponseHandler

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

func (*SIRISituationExchangeDeliveriesResponseHandler) ConnectorType

func (handler *SIRISituationExchangeDeliveriesResponseHandler) ConnectorType() string

func (*SIRISituationExchangeDeliveriesResponseHandler) RequestorRef

func (*SIRISituationExchangeDeliveriesResponseHandler) Respond

type SIRISituationExchangeRequestHandler

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

func (*SIRISituationExchangeRequestHandler) ConnectorType

func (handler *SIRISituationExchangeRequestHandler) ConnectorType() string

func (*SIRISituationExchangeRequestHandler) RequestorRef

func (handler *SIRISituationExchangeRequestHandler) RequestorRef() string

func (*SIRISituationExchangeRequestHandler) Respond

func (handler *SIRISituationExchangeRequestHandler) Respond(params HandlerParams)

type SIRIStopDiscoveryRequestHandler

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

func (*SIRIStopDiscoveryRequestHandler) ConnectorType

func (handler *SIRIStopDiscoveryRequestHandler) ConnectorType() string

func (*SIRIStopDiscoveryRequestHandler) RequestorRef

func (handler *SIRIStopDiscoveryRequestHandler) RequestorRef() string

func (*SIRIStopDiscoveryRequestHandler) Respond

func (handler *SIRIStopDiscoveryRequestHandler) Respond(params HandlerParams)

type SIRIStopMonitoringRequestDeliveriesResponseHandler

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

func (*SIRIStopMonitoringRequestDeliveriesResponseHandler) ConnectorType

func (*SIRIStopMonitoringRequestDeliveriesResponseHandler) RequestorRef

func (*SIRIStopMonitoringRequestDeliveriesResponseHandler) Respond

type SIRIStopMonitoringRequestHandler

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

func (*SIRIStopMonitoringRequestHandler) ConnectorType

func (handler *SIRIStopMonitoringRequestHandler) ConnectorType() string

func (*SIRIStopMonitoringRequestHandler) RequestorRef

func (handler *SIRIStopMonitoringRequestHandler) RequestorRef() string

func (*SIRIStopMonitoringRequestHandler) Respond

func (handler *SIRIStopMonitoringRequestHandler) Respond(params HandlerParams)

type SIRISubscribeRequestHandler

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

func (*SIRISubscribeRequestHandler) ConnectorType

func (handler *SIRISubscribeRequestHandler) ConnectorType() string

func (*SIRISubscribeRequestHandler) RequestorRef

func (handler *SIRISubscribeRequestHandler) RequestorRef() string

func (*SIRISubscribeRequestHandler) Respond

func (handler *SIRISubscribeRequestHandler) Respond(params HandlerParams)

type SIRISubscriptionTerminatedNotificationHandler

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

func (*SIRISubscriptionTerminatedNotificationHandler) ConnectorType

func (handler *SIRISubscriptionTerminatedNotificationHandler) ConnectorType() string

func (*SIRISubscriptionTerminatedNotificationHandler) RequestorRef

func (handler *SIRISubscriptionTerminatedNotificationHandler) RequestorRef() string

func (*SIRISubscriptionTerminatedNotificationHandler) Respond

type SIRIVehicleMonitoringRequestDeliveriesResponseHandler

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

func (*SIRIVehicleMonitoringRequestDeliveriesResponseHandler) ConnectorType

func (*SIRIVehicleMonitoringRequestDeliveriesResponseHandler) RequestorRef

func (*SIRIVehicleMonitoringRequestDeliveriesResponseHandler) Respond

type SIRIVehicleMonitoringRequestHandler

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

func (*SIRIVehicleMonitoringRequestHandler) ConnectorType

func (handler *SIRIVehicleMonitoringRequestHandler) ConnectorType() string

func (*SIRIVehicleMonitoringRequestHandler) RequestorRef

func (handler *SIRIVehicleMonitoringRequestHandler) RequestorRef() string

func (*SIRIVehicleMonitoringRequestHandler) Respond

func (handler *SIRIVehicleMonitoringRequestHandler) Respond(params HandlerParams)

type Savable

type Savable interface {
	Save(response http.ResponseWriter)
}

type Server

type Server struct {
	uuid.UUIDConsumer
	clock.ClockConsumer
	core.ReferentialsConsumer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(bind string) *Server

func (*Server) HandleFlow

func (server *Server) HandleFlow(response http.ResponseWriter, request *http.Request)

func (*Server) ListenAndServe

func (server *Server) ListenAndServe() error

type SituationController

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

func (*SituationController) Create

func (controller *SituationController) Create(response http.ResponseWriter, body []byte)

func (*SituationController) Delete

func (controller *SituationController) Delete(response http.ResponseWriter, identifier string)

func (*SituationController) Index

func (controller *SituationController) Index(response http.ResponseWriter, filters url.Values)

func (*SituationController) Show

func (controller *SituationController) Show(response http.ResponseWriter, identifier string)

func (*SituationController) Update

func (controller *SituationController) Update(response http.ResponseWriter, identifier string, body []byte)

type Status

type Status struct {
	Status  string `json:"status"`
	Version string `json:"version"`
}

type StatusController

type StatusController struct{}

type StopAreaController

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

func (*StopAreaController) Create

func (controller *StopAreaController) Create(response http.ResponseWriter, body []byte)

func (*StopAreaController) Delete

func (controller *StopAreaController) Delete(response http.ResponseWriter, identifier string)

func (*StopAreaController) Index

func (controller *StopAreaController) Index(response http.ResponseWriter, filters url.Values)

func (*StopAreaController) Show

func (controller *StopAreaController) Show(response http.ResponseWriter, identifier string)

func (*StopAreaController) Update

func (controller *StopAreaController) Update(response http.ResponseWriter, identifier string, body []byte)

type StopAreaGroupsController

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

func (*StopAreaGroupsController) Create

func (controller *StopAreaGroupsController) Create(response http.ResponseWriter, body []byte)

func (*StopAreaGroupsController) Delete

func (controller *StopAreaGroupsController) Delete(response http.ResponseWriter, identifier string)

func (*StopAreaGroupsController) Index

func (controller *StopAreaGroupsController) Index(response http.ResponseWriter, filters url.Values)

func (*StopAreaGroupsController) Show

func (controller *StopAreaGroupsController) Show(response http.ResponseWriter, identifier string)

func (*StopAreaGroupsController) Update

func (controller *StopAreaGroupsController) Update(response http.ResponseWriter, identifier string, body []byte)

type StopVisitController

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

func (*StopVisitController) Create

func (controller *StopVisitController) Create(response http.ResponseWriter, body []byte)

func (*StopVisitController) Delete

func (controller *StopVisitController) Delete(response http.ResponseWriter, identifier string)

func (*StopVisitController) Index

func (controller *StopVisitController) Index(response http.ResponseWriter, filters url.Values)

func (*StopVisitController) Show

func (controller *StopVisitController) Show(response http.ResponseWriter, identifier string)

func (*StopVisitController) Update

func (controller *StopVisitController) Update(response http.ResponseWriter, identifier string, body []byte)

type TimeController

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

type VehicleController

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

func (*VehicleController) Create

func (controller *VehicleController) Create(response http.ResponseWriter, body []byte)

func (*VehicleController) Delete

func (controller *VehicleController) Delete(response http.ResponseWriter, identifier string)

func (*VehicleController) Index

func (controller *VehicleController) Index(response http.ResponseWriter, filters url.Values)

func (*VehicleController) Show

func (controller *VehicleController) Show(response http.ResponseWriter, identifier string)

func (*VehicleController) Update

func (controller *VehicleController) Update(response http.ResponseWriter, identifier string, body []byte)

type VehicleJourneyController

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

func (*VehicleJourneyController) Create

func (controller *VehicleJourneyController) Create(response http.ResponseWriter, body []byte)

func (*VehicleJourneyController) Delete

func (controller *VehicleJourneyController) Delete(response http.ResponseWriter, identifier string)

func (*VehicleJourneyController) Index

func (controller *VehicleJourneyController) Index(response http.ResponseWriter, filters url.Values)

func (*VehicleJourneyController) Show

func (controller *VehicleJourneyController) Show(response http.ResponseWriter, identifier string)

func (*VehicleJourneyController) Update

func (controller *VehicleJourneyController) Update(response http.ResponseWriter, identifier string, body []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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