Documentation
¶
Index ¶
- func GetCategorySliceDTOs(categories []Category) []interface{}
- func GetDTOs(dtos []DTO) []interface{}
- func GetNoteSliceDTO(notes []Note) []interface{}
- func GetNoteWCategorySliceDTO(notes []GetNotesByUserRow) []interface{}
- type Category
- type CategoryDTO
- type CreateCategoryParams
- type CreateNoteCategoryParams
- type CreateNoteParams
- type CreateUserParams
- type DBTX
- type DTO
- type DeleteCategoryByIdParams
- type GetCategoryByIdParams
- type GetNoteByIdParams
- type GetNoteByIdRow
- type GetNotesByUserParams
- type GetNotesByUserRow
- type Note
- type NoteCategory
- type NoteDTO
- type NoteWCategoryDTO
- type Queries
- func (q *Queries) CreateCategory(ctx context.Context, arg CreateCategoryParams) (Category, error)
- func (q *Queries) CreateNote(ctx context.Context, arg CreateNoteParams) (Note, error)
- func (q *Queries) CreateNoteCategory(ctx context.Context, arg CreateNoteCategoryParams) (NoteCategory, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteCategoryById(ctx context.Context, arg DeleteCategoryByIdParams) error
- func (q *Queries) GetCategoriesByUser(ctx context.Context, userID uuid.UUID) ([]Category, error)
- func (q *Queries) GetCategoryById(ctx context.Context, arg GetCategoryByIdParams) (Category, error)
- func (q *Queries) GetNoteById(ctx context.Context, arg GetNoteByIdParams) (GetNoteByIdRow, error)
- func (q *Queries) GetNotesByUser(ctx context.Context, arg GetNotesByUserParams) ([]GetNotesByUserRow, error)
- func (q *Queries) GetUserById(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) UpdateNoteTitleBody(ctx context.Context, arg UpdateNoteTitleBodyParams) (Note, error)
- func (q *Queries) UpdateTokens(ctx context.Context, arg UpdateTokensParams) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateNoteTitleBodyParams
- type UpdateTokensParams
- type User
- type UserDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCategorySliceDTOs ¶
func GetCategorySliceDTOs(categories []Category) []interface{}
func GetNoteSliceDTO ¶
func GetNoteSliceDTO(notes []Note) []interface{}
func GetNoteWCategorySliceDTO ¶
func GetNoteWCategorySliceDTO(notes []GetNotesByUserRow) []interface{}
Types ¶
type CategoryDTO ¶
type CreateCategoryParams ¶
type CreateNoteParams ¶
type CreateUserParams ¶
type GetNoteByIdRow ¶
type GetNoteByIdRow struct {
Note Note
Categories json.RawMessage
}
type GetNotesByUserParams ¶
type GetNotesByUserRow ¶
type GetNotesByUserRow struct {
Note Note
Categories json.RawMessage
}
func (*GetNotesByUserRow) GetDTO ¶
func (n *GetNotesByUserRow) GetDTO() interface{}
type Note ¶
type NoteWCategoryDTO ¶
type NoteWCategoryDTO struct {
Note NoteDTO `json:"note"`
Category []interface{} `json:"categories"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateCategory ¶
func (*Queries) CreateNote ¶
func (*Queries) CreateNoteCategory ¶
func (q *Queries) CreateNoteCategory(ctx context.Context, arg CreateNoteCategoryParams) (NoteCategory, error)
func (*Queries) CreateUser ¶
func (*Queries) DeleteCategoryById ¶
func (q *Queries) DeleteCategoryById(ctx context.Context, arg DeleteCategoryByIdParams) error
func (*Queries) GetCategoriesByUser ¶
func (*Queries) GetCategoryById ¶
func (*Queries) GetNoteById ¶
func (q *Queries) GetNoteById(ctx context.Context, arg GetNoteByIdParams) (GetNoteByIdRow, error)
func (*Queries) GetNotesByUser ¶
func (q *Queries) GetNotesByUser(ctx context.Context, arg GetNotesByUserParams) ([]GetNotesByUserRow, error)
func (*Queries) GetUserById ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) UpdateNoteTitleBody ¶
func (*Queries) UpdateTokens ¶
type UpdateTokensParams ¶
type UpdateTokensParams struct {
Token sql.NullString
RefreshToken sql.NullString
ID uuid.UUID
}
Click to show internal directories.
Click to hide internal directories.