server

package
v0.0.0-...-a39b735 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package server implements the API server.

Package server implements the API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *cobra.Command, _ []string)

Run creates and runs the server.

Types

type API

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

API implements the api server.

func NewAPI

func NewAPI(db storage.Storer) *API

NewAPI creates the API server.

func (*API) AddPet

AddPet adds a pet to the pet store.

func (*API) DeletePet

DeletePet deletes a pet in the pet store.

func (*API) FindPetByID

FindPetByID finds a pet in the pet store by id.

func (*API) FindPets

FindPets finds a pet in the pet store by id.

Jump to

Keyboard shortcuts

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