Documentation ¶
Index ¶
- type CreateMessageParams
- type CreateRoomParams
- type CreateUserParams
- type DBTX
- type GetMessagesByRoomAndUserParams
- type GetMessagesByRoomRow
- type GetMessagesByUserRow
- type GetPreviousRoomMessagesParams
- type GetPreviousRoomMessagesRow
- type Message
- type Queries
- func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (Message, error)
- func (q *Queries) CreateRoom(ctx context.Context, arg CreateRoomParams) (Room, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteUserById(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) FindAllRooms(ctx context.Context) ([]Room, error)
- func (q *Queries) FindRoomById(ctx context.Context, id uuid.UUID) (Room, error)
- func (q *Queries) FindUserByApiKey(ctx context.Context, apiKey string) (User, error)
- func (q *Queries) FindUserById(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) FindUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetMessagesByRoom(ctx context.Context, roomID uuid.UUID) ([]GetMessagesByRoomRow, error)
- func (q *Queries) GetMessagesByRoomAndUser(ctx context.Context, arg GetMessagesByRoomAndUserParams) ([]Message, error)
- func (q *Queries) GetMessagesByUser(ctx context.Context, senderID uuid.UUID) ([]GetMessagesByUserRow, error)
- func (q *Queries) GetPreviousRoomMessages(ctx context.Context, arg GetPreviousRoomMessagesParams) ([]GetPreviousRoomMessagesRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Room
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMessageParams ¶
type CreateRoomParams ¶
type CreateUserParams ¶
type GetMessagesByRoomRow ¶
type GetMessagesByUserRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateMessage ¶
func (*Queries) CreateRoom ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteUserById ¶
func (*Queries) FindRoomById ¶
func (*Queries) FindUserByApiKey ¶
func (*Queries) FindUserById ¶
func (*Queries) FindUserByUsername ¶
func (*Queries) GetMessagesByRoom ¶
func (*Queries) GetMessagesByRoomAndUser ¶
func (*Queries) GetMessagesByUser ¶
func (*Queries) GetPreviousRoomMessages ¶
func (q *Queries) GetPreviousRoomMessages(ctx context.Context, arg GetPreviousRoomMessagesParams) ([]GetPreviousRoomMessagesRow, error)
Click to show internal directories.
Click to hide internal directories.