Documentation ¶
Index ¶
- type DB
- func (db *DB) AddPet(ctx context.Context, pet *pb.Pet) error
- func (db *DB) DeletePet(ctx context.Context, id int64) error
- func (db *DB) FindPetsByStatus(ctx context.Context, statuses []string) (*pb.Pets, error)
- func (db *DB) GetPetByID(ctx context.Context, id int64) (*pb.Pet, error)
- func (db *DB) UpdatePet(ctx context.Context, pet *pb.Pet) error
- func (db *DB) UpdatePetWithForm(ctx context.Context, id int64, name string, status string) error
- func (db *DB) UploadFile(ctx context.Context, id int64, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an INCOMPLETE implementation of a mySQL driver
func (*DB) FindPetsByStatus ¶
FindPetsByStatus returns a list of pets that match any of the given status codes
func (*DB) GetPetByID ¶
GetPetByID returns the pet by the given ID, or nil + error if not found
func (*DB) UpdatePetWithForm ¶
UpdatePetWithForm updates the name and status of a pet
Click to show internal directories.
Click to hide internal directories.