api

package
v0.0.0-...-db5e1f0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tea

type Tea struct {
	Id          int32  `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type TeaService

type TeaService struct {
	Teas []Tea
}

func NewTeaService

func NewTeaService() *TeaService

func (*TeaService) AddTea

func (ts *TeaService) AddTea(w http.ResponseWriter, r *http.Request)

func (*TeaService) GetTea

func (ts *TeaService) GetTea(w http.ResponseWriter, r *http.Request, teaId int)

func (*TeaService) GetTeas

func (ts *TeaService) GetTeas(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Package spec provides primitives to interact with the openapi HTTP API.
Package spec provides primitives to interact with the openapi HTTP API.
Package tea provides primitives to interact with the openapi HTTP API.
Package tea provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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