Documentation ¶
Index ¶
- Constants
- func IsRealError(err error) bool
- func Limit(limit *int) int
- func TimeRange(ctx context.Context, exec boil.ContextExecutor, topic *models.Topic) (*models.Timerange, error)
- func Topic(actorID, topicID string) []qm.QueryMod
- func Transact(db *sql.DB, txFunc func(*sql.Tx) error) (err error)
- type LinkParentTopics
- type LinkQuery
- type Search
- type TopicParentTopics
Constants ¶
View Source
const (
ErrSQLNoRows = "sql: no rows in result set"
)
Some helpful constants.
Variables ¶
This section is empty.
Functions ¶
func IsRealError ¶
IsRealError returns true if err is non-nil and is not a "sql: no rows in result set" error
func TimeRange ¶
func TimeRange( ctx context.Context, exec boil.ContextExecutor, topic *models.Topic, ) (*models.Timerange, error)
TimeRange returns the time range for a topic.
Types ¶
type LinkParentTopics ¶
LinkParentTopics returns the parent topics of a topic.
func (LinkParentTopics) Fetch ¶
func (q LinkParentTopics) Fetch(ctx context.Context, exec boil.ContextExecutor) ([]*models.Topic, error)
Fetch fetches the parent topics
type LinkQuery ¶
type LinkQuery struct { First *int IncludeDescendants bool Reviewed *bool SearchString *string Topic *models.Topic View *models.View Viewer *models.User }
LinkQuery holds common information for querying for links.
type Search ¶
Search helps with the fetching of child topics and links
func NewSearch ¶
func NewSearch(parentTopic *models.TopicValue, searchString *string) *Search
NewSearch returns a Search that can then be used to search for topics and links within a set of parent topics.
type TopicParentTopics ¶
TopicParentTopics returns the parent topics of a topic
func (TopicParentTopics) Fetch ¶
func (q TopicParentTopics) Fetch(ctx context.Context, exec boil.ContextExecutor) ([]*models.Topic, error)
Fetch fetches the parent topics
Click to show internal directories.
Click to hide internal directories.