v1beta1

package
v0.0.0-...-a193200 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	proto.UnimplementedPetsAPIServer
	// contains filtered or unexported fields
}

Service holds onto the state of the Pets service.

func NewService

func NewService(adapters *api.Adapters, appSpec *app.Spec) *Service

NewService creates an instance of a Pets Service.

func (*Service) AddPet

AddPet adds a pet to a database of pets.

func (*Service) GetPet

GetPet fetches a pet by type/breed.

func (*Service) GetPets

GetPets fetches a list of pets.

type Servicer

type Servicer interface {
	proto.PetsAPIServer
}

Servicer provides the transport-agnostic API for Pets

Jump to

Keyboard shortcuts

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