Documentation
¶
Overview ¶
Package redirects represents the redirect resource
Index ¶
Constants ¶
View Source
const ( // TableName is the database table for this resource TableName = "redirects" // KeyName is the primary key value for this resource KeyName = "id" // Order defines the default sort order in sql for this resource Order = "id desc" )
Variables ¶
This section is empty.
Functions ¶
func AllowedParams ¶
func AllowedParams() []string
AllowedParams returns an array of allowed param keys for Update and Create.
Types ¶
type Redirect ¶
type Redirect struct { // resource.Base defines behaviour and fields shared between all resources resource.Base // status.ResourceStatus defines a status field and associated behaviour status.ResourceStatus NewURL string OldURL string }
Redirect handles saving and retreiving redirects from the database
func FindFirst ¶
FindFirst fetches a single redirect record from the database using a where query with the format and args provided.
func NewWithColumns ¶
NewWithColumns creates a new redirect instance and fills it with data from the database cols provided.
Click to show internal directories.
Click to hide internal directories.