Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTime ¶
CustomTime handles timestamp conversion between Go's time.Time and sqlite's TEXT.
func (*CustomTime) Scan ¶
func (ct *CustomTime) Scan(value interface{}) error
Scan converts a sqlite TEXT timestamp into a CustomTime.
type Shortlink ¶
type Shortlink struct { Slug string `json:"slug,omitempty" db:"slug"` // added by API Kind string `json:"kind" db:"kind"` // required, 'workflow' or 'url' Content string `json:"content" db:"content"` // required, JSON or URL CreatorIP string `json:"creator_ip,omitempty" db:"creator_ip"` // added by API CreatedAt CustomTime `json:"created_at,omitempty" db:"created_at"` // added by DB ExpiresAt *CustomTime `json:"expires_at,omitempty" db:"expires_at"` // optional Password string `json:"password,omitempty" db:"password"` // optional AllowedVisits int `json:"allowed_visits,omitempty" db:"allowed_visits"` // optional, -1 for unlimited }
Shortlink represents a shortlink to a workflow JSON or URL.
Click to show internal directories.
Click to hide internal directories.