Documentation
¶
Index ¶
- Variables
- type Migrator
- type NopStore
- func (s *NopStore) Broadcasts() message.BroadcastRepository
- func (s *NopStore) Channels() channel.Repository
- func (s *NopStore) Close(ctx context.Context) error
- func (s *NopStore) Devices() device.Repository
- func (s *NopStore) Migrate(ctx context.Context) error
- func (s *NopStore) ServerInvites() serverinvite.Repository
- func (s *NopStore) Users() user.Repository
- type PostgresStore
- func (s *PostgresStore) Broadcasts() message.BroadcastRepository
- func (s *PostgresStore) Channels() channel.Repository
- func (s *PostgresStore) Close(ctx context.Context) error
- func (s *PostgresStore) Devices() device.Repository
- func (s *PostgresStore) Migrate(ctx context.Context) error
- func (s *PostgresStore) ServerInvites() serverinvite.Repository
- func (s *PostgresStore) Users() user.Repository
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type NopStore ¶
type NopStore struct{}
func NewNopStore ¶
func NewNopStore() *NopStore
func (*NopStore) Broadcasts ¶
func (s *NopStore) Broadcasts() message.BroadcastRepository
func (*NopStore) Channels ¶
func (s *NopStore) Channels() channel.Repository
func (*NopStore) Devices ¶
func (s *NopStore) Devices() device.Repository
func (*NopStore) ServerInvites ¶
func (s *NopStore) ServerInvites() serverinvite.Repository
func (*NopStore) Users ¶
func (s *NopStore) Users() user.Repository
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func NewPostgresStore ¶
func NewPostgresStore(ctx context.Context, dbURL string) (*PostgresStore, error)
func (*PostgresStore) Broadcasts ¶
func (s *PostgresStore) Broadcasts() message.BroadcastRepository
func (*PostgresStore) Channels ¶
func (s *PostgresStore) Channels() channel.Repository
func (*PostgresStore) Devices ¶
func (s *PostgresStore) Devices() device.Repository
func (*PostgresStore) ServerInvites ¶
func (s *PostgresStore) ServerInvites() serverinvite.Repository
func (*PostgresStore) Users ¶
func (s *PostgresStore) Users() user.Repository
type Store ¶
type Store interface {
Close(ctx context.Context) error
Migrate(ctx context.Context) error
Users() user.Repository
Devices() device.Repository
Broadcasts() message.BroadcastRepository
Channels() channel.Repository
ServerInvites() serverinvite.Repository
}
Click to show internal directories.
Click to hide internal directories.