repository

package
v0.0.0-...-efbd42f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaaDoc

type VaaDoc struct {
	ID  string `bson:"_id" json:"id"`
	Vaa []byte `bson:"vaas" json:"vaa"`
}

VaaDoc is a document for VAA.

type VaaRepository

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

VaaRepository is a repository for VAA.

func NewVaaRepository

func NewVaaRepository(db *mongo.Database, logger *zap.Logger) *VaaRepository

NewVaaRepository create a new Vaa repository.

func (*VaaRepository) FindById

func (r *VaaRepository) FindById(ctx context.Context, id string) (*VaaDoc, error)

FindById finds VAA by id.

func (*VaaRepository) FindPageByTimeRange

func (r *VaaRepository) FindPageByTimeRange(ctx context.Context, startTime time.Time, endTime time.Time, page, pageSize int64, sortAsc bool) ([]*VaaDoc, error)

FindPageByTimeRange finds VAA by time range.

Jump to

Keyboard shortcuts

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