service

package
v0.0.0-...-bea4ea4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2016 License: AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PER_PAGE_LIMIT = 100
)

Variables

This section is empty.

Functions

func GetLimit

func GetLimit(request *http.Request) int

Types

type ApiDocumentationService

type ApiDocumentationService struct {
	*gin.Engine
}

func (ApiDocumentationService) Run

func (a ApiDocumentationService) Run()

type DataRender

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

func (*DataRender) Render

func (render *DataRender) Render(w http.ResponseWriter) error

type ParliamentarianResource

type ParliamentarianResource struct {
	DB database.MongoDB
}

func (*ParliamentarianResource) Get

func (r *ParliamentarianResource) Get(c *gin.Context)

func (*ParliamentarianResource) Index

func (r *ParliamentarianResource) Index(c *gin.Context)

type ParliamentariansService

type ParliamentariansService struct {
	*gin.Engine
}

func (*ParliamentariansService) Run

func (cs *ParliamentariansService) Run(databaseDB database.MongoDB)

type PartiesService

type PartiesService struct {
	*gin.Engine
}

func (*PartiesService) Run

func (cs *PartiesService) Run(databaseDB database.MongoDB)

type PartyResource

type PartyResource struct {
	DB database.MongoDB
}

func (*PartyResource) Get

func (r *PartyResource) Get(c *gin.Context)

func (*PartyResource) Index

func (r *PartyResource) Index(c *gin.Context)

type PingdomService

type PingdomService struct {
	*gin.Engine
}

func (PingdomService) Run

func (r PingdomService) Run()

type ReservoirSpResource

type ReservoirSpResource struct {
	DB database.MongoDB
}

func (*ReservoirSpResource) Index

func (r *ReservoirSpResource) Index(c *gin.Context)

type StatesResource

type StatesResource struct {
	DB database.MongoDB
}

func (*StatesResource) Cities

func (s *StatesResource) Cities(c *gin.Context)

func (*StatesResource) Get

func (r *StatesResource) Get(c *gin.Context)

func (*StatesResource) GetCity

func (s *StatesResource) GetCity(c *gin.Context)

func (*StatesResource) Index

func (r *StatesResource) Index(c *gin.Context)

type StatesService

type StatesService struct {
	*gin.Engine
}

func (StatesService) Run

func (s StatesService) Run(databaseDB database.MongoDB)

type TrainsSpResource

type TrainsSpResource struct {
	DB database.MongoDB
}

func (TrainsSpResource) GetLine

func (self TrainsSpResource) GetLine(c *gin.Context)

func (TrainsSpResource) GetLineStatus

func (self TrainsSpResource) GetLineStatus(c *gin.Context)

func (TrainsSpResource) GetLineStatuses

func (self TrainsSpResource) GetLineStatuses(c *gin.Context)

func (TrainsSpResource) Lines

func (self TrainsSpResource) Lines(c *gin.Context)

Jump to

Keyboard shortcuts

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