petstore

package
v0.0.0-...-2bea0bf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64

func Int64(v int64) *int64

Int64 returns a pointer value for the int64 value passed in.

func IsErrorNotFound

func IsErrorNotFound(err error) bool

func String

func String(v string) *string

String returns a pointer value for the string value passed in.

Types

type Client

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

func New

func New(cfg *Config) *Client

func (*Client) DoRequest

func (c *Client) DoRequest(path string, method string, body []byte) (*http.Response, error)

type Config

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

func GetConfig

func GetConfig(url string) *Config

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string
}

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

Directories

Path Synopsis
pet

Jump to

Keyboard shortcuts

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