Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphsShortcutStore ¶
type GraphsShortcutStore struct {
// contains filtered or unexported fields
}
GraphsShortcutStore implements the graphsshortcut.Store interface using an SQL database.
func New ¶
func New(db pool.Pool) (*GraphsShortcutStore, error)
New returns a new *GraphsShortcutStore.
func (*GraphsShortcutStore) GetShortcut ¶
func (s *GraphsShortcutStore) GetShortcut(ctx context.Context, id string) (*graphsshortcut.GraphsShortcut, error)
GetShortcut implements the graphsshortcut.Store interface.
func (*GraphsShortcutStore) InsertShortcut ¶
func (s *GraphsShortcutStore) InsertShortcut(ctx context.Context, sc *graphsshortcut.GraphsShortcut) (string, error)
InsertShortcut implements the graphsshortcut.Store interface.
Click to show internal directories.
Click to hide internal directories.