mockserver

package
v0.0.0-...-9719495 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServer

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

func New

func New() *MockServer

func (*MockServer) Handler

func (m *MockServer) Handler() http.Handler

func (*MockServer) SetPets

func (m *MockServer) SetPets(pets map[int]Pet)

type Pet

type Pet struct {
	Id        int         `json:"id"`
	Name      string      `json:"name"`
	Category  PetCategory `json:"category"`
	PhotoUrls []string    `json:"photoUrls"`
	Status    string      `json:"status"`
}

type PetCategory

type PetCategory struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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