mysql

package
v0.0.0-...-1d9fd85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnippetStorage

type SnippetStorage struct {
	// contains filtered or unexported fields
}

func (SnippetStorage) Add

func (s SnippetStorage) Add(snippet *domain.Snippet) error

func (SnippetStorage) GetByID

func (s SnippetStorage) GetByID(id int64) (domain.Snippet, error)

func (SnippetStorage) Latest

func (s SnippetStorage) Latest() ([]domain.Snippet, error)

func (SnippetStorage) RemoveByID

func (s SnippetStorage) RemoveByID(id int64) error

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(config cfg.Database) (Storage, error)

func (Storage) Close

func (s Storage) Close() error

func (Storage) Sessions

func (s Storage) Sessions() scs.Store

func (Storage) Snippets

func (s Storage) Snippets() storage.SnippetStorage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL