repo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPaginator

type IPaginator interface {
	HasMorePages() bool
	NextPage(ctx context.Context, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)
}

type IRepo

type IRepo interface {
	Init(opts *option.Options) error
	NewPaginator(segment int32, totalSegments int32, limit int32) IPaginator
	GetIndexes(ctx context.Context) ([]Index, error)
	GetPrimaryIndex(ctx context.Context) (Index, error)
}

func NewRepo

func NewRepo() IRepo

type Index

type Index struct {
	Name string
	Keys []string
}

type Repo

type Repo struct {
	TableName string
	// contains filtered or unexported fields
}

func (*Repo) GetIndexes

func (r *Repo) GetIndexes(ctx context.Context) ([]Index, error)

func (*Repo) GetPrimaryIndex

func (r *Repo) GetPrimaryIndex(ctx context.Context) (Index, error)

func (*Repo) Init

func (r *Repo) Init(opts *option.Options) error

func (*Repo) NewPaginator

func (r *Repo) NewPaginator(segment int32, totalSegments int32, limit int32) IPaginator

Jump to

Keyboard shortcuts

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