apogy

package
v0.0.14 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: 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 {
	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