apogy

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book Document[BookVal]

type BookVal

type BookVal struct {
	Name    string           `json:"name"`
	Reviews []BookValReviews `json:"reviews,omitempty"`
	Author  string           `json:"author"`
	Isbn    *string          `json:"isbn,omitempty"`
}

BookVal represents a generated struct

type BookValReviews

type BookValReviews struct {
	Text   string `json:"text"`
	Author string `json:"author"`
}

BookValReviews represents a generated struct

type Client

type Client struct {
	openapi.ClientInterface

	Book *openapi.TypedClient[Book]
}

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

type ClientOption

type ClientOption openapi.ClientOption

type Document

type Document[Val any] struct {
	openapi.Document
	Val Val `json:"val"`
}

Jump to

Keyboard shortcuts

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