sqlite

package
v0.0.0-...-831fdfd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage() func(*sqlx.DB) interface{}

Types

type Sqlite

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

func (*Sqlite) CommentCreate

func (s *Sqlite) CommentCreate(ctx context.Context, req *pb.CommentCreateReq) (*models.Comment, error)

func (*Sqlite) CommentDelete

func (s *Sqlite) CommentDelete(ctx context.Context, req *pb.CommentDeleteReq) error

func (*Sqlite) CommentList

func (s *Sqlite) CommentList(ctx context.Context, req *pb.CommentListReq) ([]*models.Comment, error)

func (*Sqlite) HandlerList

func (s *Sqlite) HandlerList(ctx context.Context, req *pb.HandlerListReq) ([]*models.Handler, error)

func (*Sqlite) ModuleCreate

func (s *Sqlite) ModuleCreate(ctx context.Context, modules []*models.Module) error

func (*Sqlite) ModuleList

func (s *Sqlite) ModuleList(ctx context.Context, req *pb.ModuleListReq) ([]*models.Module, error)

func (*Sqlite) ModulesProcess

func (s *Sqlite) ModulesProcess(ctx context.Context, td time.Duration) ([]*models.Module, error)

func (*Sqlite) PackageCreate

func (s *Sqlite) PackageCreate(ctx context.Context, req *pb.PackageCreateReq) (*models.Package, error)

func (*Sqlite) PackageDelete

func (s *Sqlite) PackageDelete(ctx context.Context, req *pb.PackageDeleteReq) error

func (*Sqlite) PackageList

func (s *Sqlite) PackageList(ctx context.Context, req *pb.PackageListReq) ([]*models.Package, error)

func (*Sqlite) PackageLookup

func (s *Sqlite) PackageLookup(ctx context.Context, req *pb.PackageLookupReq) (*models.Package, error)

func (*Sqlite) PackageModules

func (s *Sqlite) PackageModules(ctx context.Context, req *pb.PackageModulesReq) ([]*models.Module, error)

func (*Sqlite) PackageModulesCreate

func (s *Sqlite) PackageModulesCreate(ctx context.Context, pkg *models.Package, modules []*models.Module) error

func (*Sqlite) PackageUpdate

func (s *Sqlite) PackageUpdate(ctx context.Context, req *pb.PackageUpdateReq) (*models.Package, error)

func (*Sqlite) PackagesProcess

func (s *Sqlite) PackagesProcess(ctx context.Context, td time.Duration) ([]*models.Package, error)

func (*Sqlite) PackagesUpdateLastCheck

func (s *Sqlite) PackagesUpdateLastCheck(ctx context.Context, packages []*models.Package) error

Jump to

Keyboard shortcuts

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