commit

package
v0.0.0-...-b311a88 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExists = errors.New("no commits available")

Functions

This section is empty.

Types

type FindResult

type FindResult struct {
	Commits []model.Commit
	Cursor  uint64
}

type GetAllPage

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

type RedisRepo

type RedisRepo struct {
	Client *redis.Client
}

func (*RedisRepo) GetAll

func (r *RedisRepo) GetAll(ctx context.Context, page GetAllPage) (FindResult, error)

func (*RedisRepo) Insert

func (r *RedisRepo) Insert(ctx context.Context, commit model.Commit) error

Jump to

Keyboard shortcuts

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