Documentation ¶
Index ¶
- func JSONAPI(c echo.Context, code int, data interface{}) error
- func JSONAPIPaginated(c echo.Context, code int, data interface{}, link *jsonapi.Link) error
- func Server()
- type BackendRoute
- func (r *BackendRoute) AddZone(c echo.Context) (err error)
- func (r *BackendRoute) Create(c echo.Context) (err error)
- func (r *BackendRoute) Delete(c echo.Context) (err error)
- func (r *BackendRoute) Get(c echo.Context) (err error)
- func (r *BackendRoute) GetZones(c echo.Context) (err error)
- func (r *BackendRoute) List(c echo.Context) (err error)
- func (r *BackendRoute) Register(e *echo.Echo)
- func (r *BackendRoute) RemoveZone(c echo.Context) (err error)
- func (r *BackendRoute) Update(c echo.Context) (err error)
- func (r *BackendRoute) UpdateZones(c echo.Context) (err error)
- type Include
- type Page
- type Query
- type RecordRoute
- func (r *RecordRoute) Create(c echo.Context) (err error)
- func (r *RecordRoute) Delete(c echo.Context) (err error)
- func (r *RecordRoute) Get(c echo.Context) (err error)
- func (r *RecordRoute) GetZone(c echo.Context) (err error)
- func (r *RecordRoute) List(c echo.Context) (err error)
- func (r *RecordRoute) Register(e *echo.Echo)
- func (r *RecordRoute) Update(c echo.Context) (err error)
- func (r *RecordRoute) UpdateZone(c echo.Context) (err error)
- type ZoneRoute
- func (r *ZoneRoute) AddBackend(c echo.Context) (err error)
- func (r *ZoneRoute) Create(c echo.Context) (err error)
- func (r *ZoneRoute) Delete(c echo.Context) (err error)
- func (r *ZoneRoute) Get(c echo.Context) (err error)
- func (r *ZoneRoute) GetBackends(c echo.Context) (err error)
- func (r *ZoneRoute) List(c echo.Context) (err error)
- func (r *ZoneRoute) Register(e *echo.Echo)
- func (r *ZoneRoute) RemoveBackend(c echo.Context) (err error)
- func (r *ZoneRoute) Update(c echo.Context) (err error)
- func (r *ZoneRoute) UpdateBackends(c echo.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONAPIPaginated ¶
JSONAPIPaginated serializes jsonapi responses and set the proper content type along with pagination Links
Types ¶
type BackendRoute ¶
type BackendRoute struct {
// contains filtered or unexported fields
}
func (*BackendRoute) AddZone ¶
func (r *BackendRoute) AddZone(c echo.Context) (err error)
AddZone adds a zone to a backend
func (*BackendRoute) Create ¶
func (r *BackendRoute) Create(c echo.Context) (err error)
Create creates a new backend
func (*BackendRoute) Delete ¶
func (r *BackendRoute) Delete(c echo.Context) (err error)
Delete deletes a backend
func (*BackendRoute) Get ¶
func (r *BackendRoute) Get(c echo.Context) (err error)
Get gets a backend
func (*BackendRoute) GetZones ¶
func (r *BackendRoute) GetZones(c echo.Context) (err error)
GetZones gets all zones for a backend
func (*BackendRoute) List ¶
func (r *BackendRoute) List(c echo.Context) (err error)
List lists all backends
func (*BackendRoute) Register ¶
func (r *BackendRoute) Register(e *echo.Echo)
Register registers the routes for the backend
func (*BackendRoute) RemoveZone ¶
func (r *BackendRoute) RemoveZone(c echo.Context) (err error)
RemoveZone removes a zone from a backend
func (*BackendRoute) Update ¶
func (r *BackendRoute) Update(c echo.Context) (err error)
Update updates a backend
func (*BackendRoute) UpdateZones ¶
func (r *BackendRoute) UpdateZones(c echo.Context) (err error)
UpdateZones updates zones for a backend
type Query ¶
type Query struct { Includes map[string]*Include Filters map[string][]string Sort []string Page *Page }
func ParseQuery ¶
ParseQuery parses a query string into a Query struct
func (*Query) BuildQuery ¶
type RecordRoute ¶
type RecordRoute struct {
// contains filtered or unexported fields
}
func (*RecordRoute) Create ¶
func (r *RecordRoute) Create(c echo.Context) (err error)
Create creates a new record
func (*RecordRoute) Delete ¶
func (r *RecordRoute) Delete(c echo.Context) (err error)
Delete deletes a backend
func (*RecordRoute) GetZone ¶
func (r *RecordRoute) GetZone(c echo.Context) (err error)
GetZone gets the zone of a record
func (*RecordRoute) List ¶
func (r *RecordRoute) List(c echo.Context) (err error)
List lists all records
func (*RecordRoute) Register ¶
func (r *RecordRoute) Register(e *echo.Echo)
Register registers the routes
func (*RecordRoute) Update ¶
func (r *RecordRoute) Update(c echo.Context) (err error)
Update updates a record
func (*RecordRoute) UpdateZone ¶
func (r *RecordRoute) UpdateZone(c echo.Context) (err error)
UpdateZone updates the zone of a record
type ZoneRoute ¶
type ZoneRoute struct {
// contains filtered or unexported fields
}
func (*ZoneRoute) AddBackend ¶
AddBackend adds a zone to a backend
func (*ZoneRoute) GetBackends ¶
GetBackends gets a zone's backends
func (*ZoneRoute) Register ¶
func (r *ZoneRoute) Register(e *echo.Echo)
Register registers the routes
func (*ZoneRoute) RemoveBackend ¶
RemoveBackend removes a backend from a zone
func (*ZoneRoute) UpdateBackends ¶
UpdateBackends updates backends for a zone