sqlc

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignGroupToUserParams

type AssignGroupToUserParams struct {
	UserID  string `json:"user_id"`
	GroupID string `json:"group_id"`
}

type AssignParentGroupParams

type AssignParentGroupParams struct {
	ParentGroupID string `json:"parent_group_id"`
	ChildGroupID  string `json:"child_group_id"`
}

type Comment

type Comment struct {
	ID      string    `json:"id"`
	Ticket  string    `json:"ticket"`
	Author  string    `json:"author"`
	Message string    `json:"message"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type CreateCommentParams

type CreateCommentParams struct {
	Author  string `json:"author"`
	Message string `json:"message"`
	Ticket  string `json:"ticket"`
}

type CreateFileParams

type CreateFileParams struct {
	Name   string  `json:"name"`
	Blob   string  `json:"blob"`
	Size   float64 `json:"size"`
	Ticket string  `json:"ticket"`
}

type CreateGroupParams

type CreateGroupParams struct {
	Name        string `json:"name"`
	Permissions string `json:"permissions"`
}

type CreateLinkParams

type CreateLinkParams struct {
	Name   string `json:"name"`
	Url    string `json:"url"`
	Ticket string `json:"ticket"`
}

type CreateParamParams

type CreateParamParams struct {
	Key   string `json:"key"`
	Value []byte `json:"value"`
}

type CreateReactionParams

type CreateReactionParams struct {
	Name        string `json:"name"`
	Action      string `json:"action"`
	Actiondata  []byte `json:"actiondata"`
	Trigger     string `json:"trigger"`
	Triggerdata []byte `json:"triggerdata"`
}

type CreateTaskParams

type CreateTaskParams struct {
	Name   string  `json:"name"`
	Open   bool    `json:"open"`
	Owner  *string `json:"owner"`
	Ticket string  `json:"ticket"`
}

type CreateTicketParams

type CreateTicketParams struct {
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Open        bool    `json:"open"`
	Owner       *string `json:"owner"`
	Resolution  *string `json:"resolution"`
	Schema      []byte  `json:"schema"`
	State       []byte  `json:"state"`
	Type        string  `json:"type"`
}

type CreateTimelineParams

type CreateTimelineParams struct {
	Message string    `json:"message"`
	Ticket  string    `json:"ticket"`
	Time    time.Time `json:"time"`
}

type CreateTypeParams

type CreateTypeParams struct {
	Singular string  `json:"singular"`
	Plural   string  `json:"plural"`
	Icon     *string `json:"icon"`
	Schema   []byte  `json:"schema"`
}

type CreateUserParams

type CreateUserParams struct {
	Name         *string `json:"name"`
	Email        *string `json:"email"`
	Username     string  `json:"username"`
	PasswordHash string  `json:"passwordHash"`
	TokenKey     string  `json:"tokenKey"`
	Avatar       *string `json:"avatar"`
	Active       bool    `json:"active"`
}

type CreateWebhookParams

type CreateWebhookParams struct {
	Name        string `json:"name"`
	Collection  string `json:"collection"`
	Destination string `json:"destination"`
}

type DBTX

type DBTX interface {
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
	PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}

type DashboardCount

type DashboardCount struct {
	ID    string `json:"id"`
	Count int64  `json:"count"`
}

type Feature

type Feature struct {
	Key string `json:"key"`
}

type File

type File struct {
	ID      string    `json:"id"`
	Ticket  string    `json:"ticket"`
	Name    string    `json:"name"`
	Blob    string    `json:"blob"`
	Size    float64   `json:"size"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type GetCommentRow

type GetCommentRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Author     string    `json:"author"`
	Message    string    `json:"message"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	AuthorName *string   `json:"author_name"`
}

type GetTaskRow

type GetTaskRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Owner      *string   `json:"owner"`
	Name       string    `json:"name"`
	Open       bool      `json:"open"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	OwnerName  *string   `json:"owner_name"`
	TicketName *string   `json:"ticket_name"`
	TicketType *string   `json:"ticket_type"`
}

type Group

type Group struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type GroupEffectiveGroup

type GroupEffectiveGroup struct {
	ChildGroupID  string `json:"child_group_id"`
	ParentGroupID string `json:"parent_group_id"`
	GroupType     string `json:"group_type"`
}

type GroupEffectivePermission

type GroupEffectivePermission struct {
	ParentGroupID string `json:"parent_group_id"`
	Permission    string `json:"permission"`
}

type GroupInheritance

type GroupInheritance struct {
	ParentGroupID string `json:"parent_group_id"`
	ChildGroupID  string `json:"child_group_id"`
}

type InsertCommentParams

type InsertCommentParams struct {
	ID      string    `json:"id"`
	Author  string    `json:"author"`
	Message string    `json:"message"`
	Ticket  string    `json:"ticket"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type InsertFileParams

type InsertFileParams struct {
	ID      string    `json:"id"`
	Name    string    `json:"name"`
	Blob    string    `json:"blob"`
	Size    float64   `json:"size"`
	Ticket  string    `json:"ticket"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type InsertGroupParams

type InsertGroupParams struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type InsertLinkParams

type InsertLinkParams struct {
	ID      string    `json:"id"`
	Name    string    `json:"name"`
	Url     string    `json:"url"`
	Ticket  string    `json:"ticket"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type InsertReactionParams

type InsertReactionParams struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Action      string    `json:"action"`
	Actiondata  []byte    `json:"actiondata"`
	Trigger     string    `json:"trigger"`
	Triggerdata []byte    `json:"triggerdata"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type InsertTaskParams

type InsertTaskParams struct {
	ID      string    `json:"id"`
	Name    string    `json:"name"`
	Open    bool      `json:"open"`
	Owner   *string   `json:"owner"`
	Ticket  string    `json:"ticket"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type InsertTicketParams

type InsertTicketParams struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Open        bool      `json:"open"`
	Owner       *string   `json:"owner"`
	Resolution  *string   `json:"resolution"`
	Schema      []byte    `json:"schema"`
	State       []byte    `json:"state"`
	Type        string    `json:"type"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type InsertTimelineParams

type InsertTimelineParams struct {
	ID      string    `json:"id"`
	Message string    `json:"message"`
	Ticket  string    `json:"ticket"`
	Time    time.Time `json:"time"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type InsertTypeParams

type InsertTypeParams struct {
	ID       string    `json:"id"`
	Singular string    `json:"singular"`
	Plural   string    `json:"plural"`
	Icon     *string   `json:"icon"`
	Schema   []byte    `json:"schema"`
	Created  time.Time `json:"created"`
	Updated  time.Time `json:"updated"`
}

type InsertUserParams

type InsertUserParams struct {
	ID           string    `json:"id"`
	Name         *string   `json:"name"`
	Email        *string   `json:"email"`
	Username     string    `json:"username"`
	PasswordHash string    `json:"passwordHash"`
	TokenKey     string    `json:"tokenKey"`
	Avatar       *string   `json:"avatar"`
	Active       bool      `json:"active"`
	Created      time.Time `json:"created"`
	Updated      time.Time `json:"updated"`
}

type InsertWebhookParams

type InsertWebhookParams struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Collection  string    `json:"collection"`
	Destination string    `json:"destination"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}
type Link struct {
	ID      string    `json:"id"`
	Ticket  string    `json:"ticket"`
	Name    string    `json:"name"`
	Url     string    `json:"url"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type ListChildGroupsRow

type ListChildGroupsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	GroupType   string    `json:"group_type"`
}

type ListCommentsParams

type ListCommentsParams struct {
	Ticket string `json:"ticket"`
	Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
}

type ListCommentsRow

type ListCommentsRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Author     string    `json:"author"`
	Message    string    `json:"message"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	AuthorName *string   `json:"author_name"`
	TotalCount int64     `json:"total_count"`
}

type ListFeaturesParams

type ListFeaturesParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListFeaturesRow

type ListFeaturesRow struct {
	Key        string `json:"key"`
	TotalCount int64  `json:"total_count"`
}

type ListFilesParams

type ListFilesParams struct {
	Ticket string `json:"ticket"`
	Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
}

type ListFilesRow

type ListFilesRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Name       string    `json:"name"`
	Blob       string    `json:"blob"`
	Size       float64   `json:"size"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	TotalCount int64     `json:"total_count"`
}

type ListGroupUsersRow

type ListGroupUsersRow struct {
	ID                     string     `json:"id"`
	Username               string     `json:"username"`
	Passwordhash           string     `json:"passwordhash"`
	Tokenkey               string     `json:"tokenkey"`
	Active                 bool       `json:"active"`
	Name                   *string    `json:"name"`
	Email                  *string    `json:"email"`
	Avatar                 *string    `json:"avatar"`
	Lastresetsentat        *time.Time `json:"lastresetsentat"`
	Lastverificationsentat *time.Time `json:"lastverificationsentat"`
	Created                time.Time  `json:"created"`
	Updated                time.Time  `json:"updated"`
	GroupType              string     `json:"group_type"`
}

type ListGroupsParams

type ListGroupsParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListGroupsRow

type ListGroupsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	TotalCount  int64     `json:"total_count"`
}

type ListLinksParams

type ListLinksParams struct {
	Ticket string `json:"ticket"`
	Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
}

type ListLinksRow

type ListLinksRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Name       string    `json:"name"`
	Url        string    `json:"url"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	TotalCount int64     `json:"total_count"`
}

type ListParentGroupsRow

type ListParentGroupsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	GroupType   string    `json:"group_type"`
}

type ListReactionsByTriggerParams

type ListReactionsByTriggerParams struct {
	Trigger string `json:"trigger"`
	Offset  int64  `json:"offset"`
	Limit   int64  `json:"limit"`
}

type ListReactionsByTriggerRow

type ListReactionsByTriggerRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Action      string    `json:"action"`
	Actiondata  []byte    `json:"actiondata"`
	Trigger     string    `json:"trigger"`
	Triggerdata []byte    `json:"triggerdata"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	TotalCount  int64     `json:"total_count"`
}

type ListReactionsParams

type ListReactionsParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListReactionsRow

type ListReactionsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Action      string    `json:"action"`
	Actiondata  []byte    `json:"actiondata"`
	Trigger     string    `json:"trigger"`
	Triggerdata []byte    `json:"triggerdata"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	TotalCount  int64     `json:"total_count"`
}

type ListTasksParams

type ListTasksParams struct {
	Ticket string `json:"ticket"`
	Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
}

type ListTasksRow

type ListTasksRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Owner      *string   `json:"owner"`
	Name       string    `json:"name"`
	Open       bool      `json:"open"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	OwnerName  *string   `json:"owner_name"`
	TicketName *string   `json:"ticket_name"`
	TicketType *string   `json:"ticket_type"`
	TotalCount int64     `json:"total_count"`
}

type ListTicketsParams

type ListTicketsParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListTicketsRow

type ListTicketsRow struct {
	ID           string    `json:"id"`
	Type         string    `json:"type"`
	Owner        *string   `json:"owner"`
	Name         string    `json:"name"`
	Description  string    `json:"description"`
	Open         bool      `json:"open"`
	Resolution   *string   `json:"resolution"`
	Schema       []byte    `json:"schema"`
	State        []byte    `json:"state"`
	Created      time.Time `json:"created"`
	Updated      time.Time `json:"updated"`
	OwnerName    *string   `json:"owner_name"`
	TypeSingular *string   `json:"type_singular"`
	TypePlural   *string   `json:"type_plural"`
	TotalCount   int64     `json:"total_count"`
}

type ListTimelineParams

type ListTimelineParams struct {
	Ticket string `json:"ticket"`
	Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
}

type ListTimelineRow

type ListTimelineRow struct {
	ID         string    `json:"id"`
	Ticket     string    `json:"ticket"`
	Message    string    `json:"message"`
	Time       time.Time `json:"time"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	TotalCount int64     `json:"total_count"`
}

type ListTypesParams

type ListTypesParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListTypesRow

type ListTypesRow struct {
	ID         string    `json:"id"`
	Icon       *string   `json:"icon"`
	Singular   string    `json:"singular"`
	Plural     string    `json:"plural"`
	Schema     []byte    `json:"schema"`
	Created    time.Time `json:"created"`
	Updated    time.Time `json:"updated"`
	TotalCount int64     `json:"total_count"`
}

type ListUserGroupsRow

type ListUserGroupsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Permissions string    `json:"permissions"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	GroupType   string    `json:"group_type"`
	TotalCount  int64     `json:"total_count"`
}

type ListUsersParams

type ListUsersParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListUsersRow

type ListUsersRow struct {
	ID                     string     `json:"id"`
	Username               string     `json:"username"`
	Passwordhash           string     `json:"passwordhash"`
	Tokenkey               string     `json:"tokenkey"`
	Active                 bool       `json:"active"`
	Name                   *string    `json:"name"`
	Email                  *string    `json:"email"`
	Avatar                 *string    `json:"avatar"`
	Lastresetsentat        *time.Time `json:"lastresetsentat"`
	Lastverificationsentat *time.Time `json:"lastverificationsentat"`
	Created                time.Time  `json:"created"`
	Updated                time.Time  `json:"updated"`
	TotalCount             int64      `json:"total_count"`
}

type ListWebhooksParams

type ListWebhooksParams struct {
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`
}

type ListWebhooksRow

type ListWebhooksRow struct {
	ID          string    `json:"id"`
	Collection  string    `json:"collection"`
	Destination string    `json:"destination"`
	Name        string    `json:"name"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	TotalCount  int64     `json:"total_count"`
}

type Param

type Param struct {
	Key   string `json:"key"`
	Value []byte `json:"value"`
}

type Queries

type Queries struct {
	*ReadQueries
	*WriteQueries

	ReadDB  *sql.DB
	WriteDB *sql.DB
}

func New

func New(readDB, writeDB *sql.DB) *Queries

type Reaction

type Reaction struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Action      string    `json:"action"`
	Actiondata  []byte    `json:"actiondata"`
	Trigger     string    `json:"trigger"`
	Triggerdata []byte    `json:"triggerdata"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type ReadQueries

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

func (*ReadQueries) GetComment

func (q *ReadQueries) GetComment(ctx context.Context, id string) (GetCommentRow, error)

----------------------------------------------------------------

func (*ReadQueries) GetDashboardCounts

func (q *ReadQueries) GetDashboardCounts(ctx context.Context) ([]DashboardCount, error)

----------------------------------------------------------------

func (*ReadQueries) GetFeature

func (q *ReadQueries) GetFeature(ctx context.Context, key string) (string, error)

----------------------------------------------------------------

func (*ReadQueries) GetFile

func (q *ReadQueries) GetFile(ctx context.Context, id string) (File, error)

----------------------------------------------------------------

func (*ReadQueries) GetGroup

func (q *ReadQueries) GetGroup(ctx context.Context, id string) (Group, error)

----------------------------------------------------------------

func (q *ReadQueries) GetLink(ctx context.Context, id string) (Link, error)

----------------------------------------------------------------

func (*ReadQueries) GetReaction

func (q *ReadQueries) GetReaction(ctx context.Context, id string) (Reaction, error)

----------------------------------------------------------------

func (*ReadQueries) GetSidebar

func (q *ReadQueries) GetSidebar(ctx context.Context) ([]Sidebar, error)

func (*ReadQueries) GetTask

func (q *ReadQueries) GetTask(ctx context.Context, id string) (GetTaskRow, error)

----------------------------------------------------------------

func (*ReadQueries) GetTimeline

func (q *ReadQueries) GetTimeline(ctx context.Context, id string) (Timeline, error)

----------------------------------------------------------------

func (*ReadQueries) GetType

func (q *ReadQueries) GetType(ctx context.Context, id string) (Type, error)

----------------------------------------------------------------

func (*ReadQueries) GetUser

func (q *ReadQueries) GetUser(ctx context.Context, id string) (User, error)

----------------------------------------------------------------

func (*ReadQueries) GetWebhook

func (q *ReadQueries) GetWebhook(ctx context.Context, id string) (Webhook, error)

----------------------------------------------------------------

func (*ReadQueries) ListChildGroups

func (q *ReadQueries) ListChildGroups(ctx context.Context, groupID string) ([]ListChildGroupsRow, error)

func (*ReadQueries) ListComments

func (q *ReadQueries) ListComments(ctx context.Context, arg ListCommentsParams) ([]ListCommentsRow, error)

func (*ReadQueries) ListFeatures

func (q *ReadQueries) ListFeatures(ctx context.Context, arg ListFeaturesParams) ([]ListFeaturesRow, error)

func (*ReadQueries) ListFiles

func (q *ReadQueries) ListFiles(ctx context.Context, arg ListFilesParams) ([]ListFilesRow, error)

func (*ReadQueries) ListGroupUsers

func (q *ReadQueries) ListGroupUsers(ctx context.Context, groupID string) ([]ListGroupUsersRow, error)

func (*ReadQueries) ListGroups

func (q *ReadQueries) ListGroups(ctx context.Context, arg ListGroupsParams) ([]ListGroupsRow, error)
func (q *ReadQueries) ListLinks(ctx context.Context, arg ListLinksParams) ([]ListLinksRow, error)

func (*ReadQueries) ListParentGroups

func (q *ReadQueries) ListParentGroups(ctx context.Context, groupID string) ([]ListParentGroupsRow, error)

func (*ReadQueries) ListParentPermissions

func (q *ReadQueries) ListParentPermissions(ctx context.Context, groupID string) ([]string, error)

func (*ReadQueries) ListReactions

func (q *ReadQueries) ListReactions(ctx context.Context, arg ListReactionsParams) ([]ListReactionsRow, error)

func (*ReadQueries) ListReactionsByTrigger

func (*ReadQueries) ListTasks

func (q *ReadQueries) ListTasks(ctx context.Context, arg ListTasksParams) ([]ListTasksRow, error)

func (*ReadQueries) ListTickets

func (q *ReadQueries) ListTickets(ctx context.Context, arg ListTicketsParams) ([]ListTicketsRow, error)

func (*ReadQueries) ListTimeline

func (q *ReadQueries) ListTimeline(ctx context.Context, arg ListTimelineParams) ([]ListTimelineRow, error)

func (*ReadQueries) ListTypes

func (q *ReadQueries) ListTypes(ctx context.Context, arg ListTypesParams) ([]ListTypesRow, error)

func (*ReadQueries) ListUserGroups

func (q *ReadQueries) ListUserGroups(ctx context.Context, userID string) ([]ListUserGroupsRow, error)

func (*ReadQueries) ListUserPermissions

func (q *ReadQueries) ListUserPermissions(ctx context.Context, userID string) ([]string, error)

func (*ReadQueries) ListUsers

func (q *ReadQueries) ListUsers(ctx context.Context, arg ListUsersParams) ([]ListUsersRow, error)

func (*ReadQueries) ListWebhooks

func (q *ReadQueries) ListWebhooks(ctx context.Context, arg ListWebhooksParams) ([]ListWebhooksRow, error)

func (*ReadQueries) Param

func (q *ReadQueries) Param(ctx context.Context, key string) (Param, error)

func (*ReadQueries) SearchTickets

func (q *ReadQueries) SearchTickets(ctx context.Context, arg SearchTicketsParams) ([]SearchTicketsRow, error)

func (*ReadQueries) SystemUser

func (q *ReadQueries) SystemUser(ctx context.Context) (User, error)

func (*ReadQueries) Ticket

func (q *ReadQueries) Ticket(ctx context.Context, id string) (TicketRow, error)

-----------------------------------------------------------------

func (*ReadQueries) UserByEmail

func (q *ReadQueries) UserByEmail(ctx context.Context, email *string) (User, error)

func (*ReadQueries) UserByUserName

func (q *ReadQueries) UserByUserName(ctx context.Context, username string) (User, error)

type RemoveGroupFromUserParams

type RemoveGroupFromUserParams struct {
	UserID  string `json:"user_id"`
	GroupID string `json:"group_id"`
}

type RemoveParentGroupParams

type RemoveParentGroupParams struct {
	ParentGroupID string `json:"parent_group_id"`
	ChildGroupID  string `json:"child_group_id"`
}

type SearchTicketsParams

type SearchTicketsParams struct {
	Query  interface{} `json:"query"`
	Type   interface{} `json:"type"`
	Open   interface{} `json:"open"`
	Offset int64       `json:"offset"`
	Limit  int64       `json:"limit"`
}

type SearchTicketsRow

type SearchTicketsRow struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Created     time.Time `json:"created"`
	Description string    `json:"description"`
	Open        bool      `json:"open"`
	Type        string    `json:"type"`
	State       []byte    `json:"state"`
	OwnerName   *string   `json:"owner_name"`
	TotalCount  int64     `json:"total_count"`
}
type Sidebar struct {
	ID       string  `json:"id"`
	Singular string  `json:"singular"`
	Plural   string  `json:"plural"`
	Icon     *string `json:"icon"`
	Count    int64   `json:"count"`
}

type Task

type Task struct {
	ID      string    `json:"id"`
	Ticket  string    `json:"ticket"`
	Owner   *string   `json:"owner"`
	Name    string    `json:"name"`
	Open    bool      `json:"open"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type Ticket

type Ticket struct {
	ID          string    `json:"id"`
	Type        string    `json:"type"`
	Owner       *string   `json:"owner"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Open        bool      `json:"open"`
	Resolution  *string   `json:"resolution"`
	Schema      []byte    `json:"schema"`
	State       []byte    `json:"state"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type TicketRow

type TicketRow struct {
	ID           string    `json:"id"`
	Type         string    `json:"type"`
	Owner        *string   `json:"owner"`
	Name         string    `json:"name"`
	Description  string    `json:"description"`
	Open         bool      `json:"open"`
	Resolution   *string   `json:"resolution"`
	Schema       []byte    `json:"schema"`
	State        []byte    `json:"state"`
	Created      time.Time `json:"created"`
	Updated      time.Time `json:"updated"`
	OwnerName    *string   `json:"owner_name"`
	TypeSingular *string   `json:"type_singular"`
	TypePlural   *string   `json:"type_plural"`
}

type TicketSearch

type TicketSearch struct {
	ID               string    `json:"id"`
	Name             string    `json:"name"`
	Created          time.Time `json:"created"`
	Description      string    `json:"description"`
	Open             bool      `json:"open"`
	Type             string    `json:"type"`
	State            []byte    `json:"state"`
	OwnerName        *string   `json:"owner_name"`
	CommentMessages  string    `json:"comment_messages"`
	FileNames        string    `json:"file_names"`
	LinkNames        string    `json:"link_names"`
	LinkUrls         string    `json:"link_urls"`
	TaskNames        string    `json:"task_names"`
	TimelineMessages string    `json:"timeline_messages"`
}

type Timeline

type Timeline struct {
	ID      string    `json:"id"`
	Ticket  string    `json:"ticket"`
	Message string    `json:"message"`
	Time    time.Time `json:"time"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
}

type Type

type Type struct {
	ID       string    `json:"id"`
	Icon     *string   `json:"icon"`
	Singular string    `json:"singular"`
	Plural   string    `json:"plural"`
	Schema   []byte    `json:"schema"`
	Created  time.Time `json:"created"`
	Updated  time.Time `json:"updated"`
}

type UpdateCommentParams

type UpdateCommentParams struct {
	Message *string `json:"message"`
	ID      string  `json:"id"`
}

type UpdateFileParams

type UpdateFileParams struct {
	Name *string  `json:"name"`
	Blob *string  `json:"blob"`
	Size *float64 `json:"size"`
	ID   string   `json:"id"`
}

type UpdateGroupParams

type UpdateGroupParams struct {
	Name        *string `json:"name"`
	Permissions *string `json:"permissions"`
	ID          string  `json:"id"`
}

type UpdateLinkParams

type UpdateLinkParams struct {
	Name *string `json:"name"`
	Url  *string `json:"url"`
	ID   string  `json:"id"`
}

type UpdateParamParams

type UpdateParamParams struct {
	Value []byte `json:"value"`
	Key   string `json:"key"`
}

type UpdateReactionParams

type UpdateReactionParams struct {
	Name        *string `json:"name"`
	Action      *string `json:"action"`
	Actiondata  []byte  `json:"actiondata"`
	Trigger     *string `json:"trigger"`
	Triggerdata []byte  `json:"triggerdata"`
	ID          string  `json:"id"`
}

type UpdateTaskParams

type UpdateTaskParams struct {
	Name  *string `json:"name"`
	Open  *bool   `json:"open"`
	Owner *string `json:"owner"`
	ID    string  `json:"id"`
}

type UpdateTicketParams

type UpdateTicketParams struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Open        *bool   `json:"open"`
	Owner       *string `json:"owner"`
	Resolution  *string `json:"resolution"`
	Schema      []byte  `json:"schema"`
	State       []byte  `json:"state"`
	Type        *string `json:"type"`
	ID          string  `json:"id"`
}

type UpdateTimelineParams

type UpdateTimelineParams struct {
	Message *string    `json:"message"`
	Time    *time.Time `json:"time"`
	ID      string     `json:"id"`
}

type UpdateTypeParams

type UpdateTypeParams struct {
	Singular *string `json:"singular"`
	Plural   *string `json:"plural"`
	Icon     *string `json:"icon"`
	Schema   []byte  `json:"schema"`
	ID       string  `json:"id"`
}

type UpdateUserParams

type UpdateUserParams struct {
	Name                   *string    `json:"name"`
	Email                  *string    `json:"email"`
	Username               *string    `json:"username"`
	PasswordHash           *string    `json:"passwordHash"`
	TokenKey               *string    `json:"tokenKey"`
	Avatar                 *string    `json:"avatar"`
	Active                 *bool      `json:"active"`
	LastResetSentAt        *time.Time `json:"lastResetSentAt"`
	LastVerificationSentAt *time.Time `json:"lastVerificationSentAt"`
	ID                     string     `json:"id"`
}

type UpdateWebhookParams

type UpdateWebhookParams struct {
	Name        *string `json:"name"`
	Collection  *string `json:"collection"`
	Destination *string `json:"destination"`
	ID          string  `json:"id"`
}

type User

type User struct {
	ID                     string     `json:"id"`
	Username               string     `json:"username"`
	Passwordhash           string     `json:"passwordhash"`
	Tokenkey               string     `json:"tokenkey"`
	Active                 bool       `json:"active"`
	Name                   *string    `json:"name"`
	Email                  *string    `json:"email"`
	Avatar                 *string    `json:"avatar"`
	Lastresetsentat        *time.Time `json:"lastresetsentat"`
	Lastverificationsentat *time.Time `json:"lastverificationsentat"`
	Created                time.Time  `json:"created"`
	Updated                time.Time  `json:"updated"`
}

type UserEffectiveGroup

type UserEffectiveGroup struct {
	UserID    string `json:"user_id"`
	GroupID   string `json:"group_id"`
	GroupType string `json:"group_type"`
}

type UserEffectivePermission

type UserEffectivePermission struct {
	UserID     string `json:"user_id"`
	Permission string `json:"permission"`
}

type UserGroup

type UserGroup struct {
	UserID  string `json:"user_id"`
	GroupID string `json:"group_id"`
}

type Webhook

type Webhook struct {
	ID          string    `json:"id"`
	Collection  string    `json:"collection"`
	Destination string    `json:"destination"`
	Name        string    `json:"name"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type WriteQueries

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

func (*WriteQueries) AssignGroupToUser

func (q *WriteQueries) AssignGroupToUser(ctx context.Context, arg AssignGroupToUserParams) error

func (*WriteQueries) AssignParentGroup

func (q *WriteQueries) AssignParentGroup(ctx context.Context, arg AssignParentGroupParams) error

func (*WriteQueries) CreateComment

func (q *WriteQueries) CreateComment(ctx context.Context, arg CreateCommentParams) (Comment, error)

func (*WriteQueries) CreateFeature

func (q *WriteQueries) CreateFeature(ctx context.Context, key string) (string, error)

----------------------------------------------------------------

func (*WriteQueries) CreateFile

func (q *WriteQueries) CreateFile(ctx context.Context, arg CreateFileParams) (File, error)

func (*WriteQueries) CreateGroup

func (q *WriteQueries) CreateGroup(ctx context.Context, arg CreateGroupParams) (Group, error)
func (q *WriteQueries) CreateLink(ctx context.Context, arg CreateLinkParams) (Link, error)

func (*WriteQueries) CreateParam

func (q *WriteQueries) CreateParam(ctx context.Context, arg CreateParamParams) error

func (*WriteQueries) CreateReaction

func (q *WriteQueries) CreateReaction(ctx context.Context, arg CreateReactionParams) (Reaction, error)

func (*WriteQueries) CreateTask

func (q *WriteQueries) CreateTask(ctx context.Context, arg CreateTaskParams) (Task, error)

func (*WriteQueries) CreateTicket

func (q *WriteQueries) CreateTicket(ctx context.Context, arg CreateTicketParams) (Ticket, error)

func (*WriteQueries) CreateTimeline

func (q *WriteQueries) CreateTimeline(ctx context.Context, arg CreateTimelineParams) (Timeline, error)

func (*WriteQueries) CreateType

func (q *WriteQueries) CreateType(ctx context.Context, arg CreateTypeParams) (Type, error)

func (*WriteQueries) CreateUser

func (q *WriteQueries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)

func (*WriteQueries) CreateWebhook

func (q *WriteQueries) CreateWebhook(ctx context.Context, arg CreateWebhookParams) (Webhook, error)

func (*WriteQueries) DeleteComment

func (q *WriteQueries) DeleteComment(ctx context.Context, id string) error

func (*WriteQueries) DeleteFeature

func (q *WriteQueries) DeleteFeature(ctx context.Context, key string) error

func (*WriteQueries) DeleteFile

func (q *WriteQueries) DeleteFile(ctx context.Context, id string) error

func (*WriteQueries) DeleteGroup

func (q *WriteQueries) DeleteGroup(ctx context.Context, id string) error
func (q *WriteQueries) DeleteLink(ctx context.Context, id string) error

func (*WriteQueries) DeleteReaction

func (q *WriteQueries) DeleteReaction(ctx context.Context, id string) error

func (*WriteQueries) DeleteTask

func (q *WriteQueries) DeleteTask(ctx context.Context, id string) error

func (*WriteQueries) DeleteTicket

func (q *WriteQueries) DeleteTicket(ctx context.Context, id string) error

func (*WriteQueries) DeleteTimeline

func (q *WriteQueries) DeleteTimeline(ctx context.Context, id string) error

func (*WriteQueries) DeleteType

func (q *WriteQueries) DeleteType(ctx context.Context, id string) error

func (*WriteQueries) DeleteUser

func (q *WriteQueries) DeleteUser(ctx context.Context, id string) error

func (*WriteQueries) DeleteWebhook

func (q *WriteQueries) DeleteWebhook(ctx context.Context, id string) error

func (*WriteQueries) InsertComment

func (q *WriteQueries) InsertComment(ctx context.Context, arg InsertCommentParams) (Comment, error)

----------------------------------------------------------------

func (*WriteQueries) InsertFile

func (q *WriteQueries) InsertFile(ctx context.Context, arg InsertFileParams) (File, error)

----------------------------------------------------------------

func (*WriteQueries) InsertGroup

func (q *WriteQueries) InsertGroup(ctx context.Context, arg InsertGroupParams) (Group, error)

----------------------------------------------------------------

func (q *WriteQueries) InsertLink(ctx context.Context, arg InsertLinkParams) (Link, error)

----------------------------------------------------------------

func (*WriteQueries) InsertReaction

func (q *WriteQueries) InsertReaction(ctx context.Context, arg InsertReactionParams) (Reaction, error)

----------------------------------------------------------------

func (*WriteQueries) InsertTask

func (q *WriteQueries) InsertTask(ctx context.Context, arg InsertTaskParams) (Task, error)

----------------------------------------------------------------

func (*WriteQueries) InsertTicket

func (q *WriteQueries) InsertTicket(ctx context.Context, arg InsertTicketParams) (Ticket, error)

----------------------------------------------------------------

func (*WriteQueries) InsertTimeline

func (q *WriteQueries) InsertTimeline(ctx context.Context, arg InsertTimelineParams) (Timeline, error)

----------------------------------------------------------------

func (*WriteQueries) InsertType

func (q *WriteQueries) InsertType(ctx context.Context, arg InsertTypeParams) (Type, error)

----------------------------------------------------------------

func (*WriteQueries) InsertUser

func (q *WriteQueries) InsertUser(ctx context.Context, arg InsertUserParams) (User, error)

----------------------------------------------------------------

func (*WriteQueries) InsertWebhook

func (q *WriteQueries) InsertWebhook(ctx context.Context, arg InsertWebhookParams) (Webhook, error)

----------------------------------------------------------------

func (*WriteQueries) RemoveGroupFromUser

func (q *WriteQueries) RemoveGroupFromUser(ctx context.Context, arg RemoveGroupFromUserParams) error

func (*WriteQueries) RemoveParentGroup

func (q *WriteQueries) RemoveParentGroup(ctx context.Context, arg RemoveParentGroupParams) error

func (*WriteQueries) UpdateComment

func (q *WriteQueries) UpdateComment(ctx context.Context, arg UpdateCommentParams) (Comment, error)

func (*WriteQueries) UpdateFile

func (q *WriteQueries) UpdateFile(ctx context.Context, arg UpdateFileParams) (File, error)

func (*WriteQueries) UpdateGroup

func (q *WriteQueries) UpdateGroup(ctx context.Context, arg UpdateGroupParams) (Group, error)
func (q *WriteQueries) UpdateLink(ctx context.Context, arg UpdateLinkParams) (Link, error)

func (*WriteQueries) UpdateParam

func (q *WriteQueries) UpdateParam(ctx context.Context, arg UpdateParamParams) error

func (*WriteQueries) UpdateReaction

func (q *WriteQueries) UpdateReaction(ctx context.Context, arg UpdateReactionParams) (Reaction, error)

func (*WriteQueries) UpdateTask

func (q *WriteQueries) UpdateTask(ctx context.Context, arg UpdateTaskParams) (Task, error)

func (*WriteQueries) UpdateTicket

func (q *WriteQueries) UpdateTicket(ctx context.Context, arg UpdateTicketParams) (Ticket, error)

func (*WriteQueries) UpdateTimeline

func (q *WriteQueries) UpdateTimeline(ctx context.Context, arg UpdateTimelineParams) (Timeline, error)

func (*WriteQueries) UpdateType

func (q *WriteQueries) UpdateType(ctx context.Context, arg UpdateTypeParams) (Type, error)

func (*WriteQueries) UpdateUser

func (q *WriteQueries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)

func (*WriteQueries) UpdateWebhook

func (q *WriteQueries) UpdateWebhook(ctx context.Context, arg UpdateWebhookParams) (Webhook, error)

Jump to

Keyboard shortcuts

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