repo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 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() 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() IPaginator

Jump to

Keyboard shortcuts

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