apogy

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: BSD-3-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	Author  string           `json:"author"`
	Isbn    *string          `json:"isbn,omitempty"`
	Name    string           `json:"name"`
	Reviews []BookValReviews `json:"reviews,omitempty"`
}

BookVal represents a generated struct

type BookValReviews

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

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

	Id    string    `json:"id"`
	Model string    `json:"model"`
	Val   Val       `json:"val"`
	Mut   Mutations `json:"mut",omitempty`
}

type Mutation added in v0.0.12

type Mutation struct {
	Add interface{} `json:"add",omitempty`
	Sub interface{} `json:"sub",omitempty`
	Mul interface{} `json:"mul",omitempty`
	Div interface{} `json:"div",omitempty`
	Min interface{} `json:"min",omitempty`
	Max interface{} `json:"max",omitempty`
	Set interface{} `json:"set",omitempty`
}

type Mutations added in v0.0.12

type Mutations map[string]Mutation

Jump to

Keyboard shortcuts

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