Documentation
¶
Overview ¶
Package sqlite provides concrete implementations of stores under sqlite
Index ¶
- func OpenDB(path string) (*sql.DB, error)
- type Store
- func (s *Store) Create(ctx context.Context, request gameserver.Create) error
- func (s *Store) Delete(ctx context.Context, code string) error
- func (s *Store) Get(ctx context.Context, code string) (gameserver.GameServer, error)
- func (s *Store) List(ctx context.Context) ([]gameserver.GameServer, error)
- func (s *Store) Update(ctx context.Context, code string, request gameserver.Update) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, code string) (gameserver.GameServer, error)
func (*Store) List ¶
func (s *Store) List(ctx context.Context) ([]gameserver.GameServer, error)
Click to show internal directories.
Click to hide internal directories.