repository

package
v0.0.0-...-815c6a2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PetEntity

type PetEntity struct {
	ID   int64   `dynamodbav:"ID"`
	Name string  `dynamodbav:"Name"`
	Tag  *string `dynamodbav:"Tag,omitempty"`
}

PetEntity defines model for Pet in the database.

type PetRepository

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

func NewPetRepository

func NewPetRepository() *PetRepository

func (*PetRepository) Add

func (r *PetRepository) Add(pet PetEntity) error

func (*PetRepository) GetPet

func (r *PetRepository) GetPet(id string) (*PetEntity, error)

func (*PetRepository) GetPets

func (r *PetRepository) GetPets(limit uint8) ([]PetEntity, error)

Jump to

Keyboard shortcuts

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