repo

package
v0.0.0-...-21c1986 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnippetRepo

type SnippetRepo struct {
	*mysql.MySQL
}

func New

func New(mysql_ *mysql.MySQL) *SnippetRepo

func (*SnippetRepo) Get

func (r *SnippetRepo) Get(ctx context.Context, id int) (*entity.Snippet, error)

func (*SnippetRepo) Insert

func (r *SnippetRepo) Insert(ctx context.Context, t entity.SnippetCreate) (int, error)

func (*SnippetRepo) Latest

func (r *SnippetRepo) Latest(ctx context.Context) ([]*entity.Snippet, error)

Jump to

Keyboard shortcuts

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