package
0.0.0-20240201140817-fd78167946e5
Repository: https://github.com/peter-mount/nre-feeds.git
Documentation: pkg.go.dev

# README

darwinrest

-- import "github.com/peter-mount/nre-feeds/darwinrest"

darwinrest provides some additional rest services which use all of the other packages in forming their results

Usage

type DarwinRest

type DarwinRest struct {
	Ref *darwinref.DarwinReference
	TT  *darwintimetable.DarwinTimetable
}

func (*DarwinRest) JourneyHandler

func (rs *DarwinRest) JourneyHandler(r *rest.Rest) error

JourneyHandler returns a Journey from the timetable and any reference data

func (DarwinRest) RegisterRest

func (r DarwinRest) RegisterRest(c *rest.ServerContext)

RegisterRest registers the rest endpoints into a ServerContext