Documentation ¶
Index ¶
- func NewStorage() func(*sqlx.DB) interface{}
- type Sqlite
- func (s *Sqlite) CommentCreate(ctx context.Context, req *pb.CommentCreateReq) (*models.Comment, error)
- func (s *Sqlite) CommentDelete(ctx context.Context, req *pb.CommentDeleteReq) error
- func (s *Sqlite) CommentList(ctx context.Context, req *pb.CommentListReq) ([]*models.Comment, error)
- func (s *Sqlite) HandlerList(ctx context.Context, req *pb.HandlerListReq) ([]*models.Handler, error)
- func (s *Sqlite) ModuleCreate(ctx context.Context, modules []*models.Module) error
- func (s *Sqlite) ModuleList(ctx context.Context, req *pb.ModuleListReq) ([]*models.Module, error)
- func (s *Sqlite) ModulesProcess(ctx context.Context, td time.Duration) ([]*models.Module, error)
- func (s *Sqlite) PackageCreate(ctx context.Context, req *pb.PackageCreateReq) (*models.Package, error)
- func (s *Sqlite) PackageDelete(ctx context.Context, req *pb.PackageDeleteReq) error
- func (s *Sqlite) PackageList(ctx context.Context, req *pb.PackageListReq) ([]*models.Package, error)
- func (s *Sqlite) PackageLookup(ctx context.Context, req *pb.PackageLookupReq) (*models.Package, error)
- func (s *Sqlite) PackageModules(ctx context.Context, req *pb.PackageModulesReq) ([]*models.Module, error)
- func (s *Sqlite) PackageModulesCreate(ctx context.Context, pkg *models.Package, modules []*models.Module) error
- func (s *Sqlite) PackageUpdate(ctx context.Context, req *pb.PackageUpdateReq) (*models.Package, error)
- func (s *Sqlite) PackagesProcess(ctx context.Context, td time.Duration) ([]*models.Package, error)
- func (s *Sqlite) PackagesUpdateLastCheck(ctx context.Context, packages []*models.Package) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
Types ¶
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
func (*Sqlite) CommentCreate ¶
func (*Sqlite) CommentDelete ¶
func (*Sqlite) CommentList ¶
func (*Sqlite) HandlerList ¶
func (*Sqlite) ModuleCreate ¶
func (*Sqlite) ModuleList ¶
func (*Sqlite) ModulesProcess ¶
func (*Sqlite) PackageCreate ¶
func (*Sqlite) PackageDelete ¶
func (*Sqlite) PackageList ¶
func (*Sqlite) PackageLookup ¶
func (*Sqlite) PackageModules ¶
func (*Sqlite) PackageModulesCreate ¶
func (*Sqlite) PackageUpdate ¶
func (*Sqlite) PackagesProcess ¶
Click to show internal directories.
Click to hide internal directories.