specs

package
v0.0.0-...-b3e4aef Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(options ...Option) (*API, error)

func (*API) Json

func (api *API) Json() string

func (*API) WithOptions

func (api *API) WithOptions(opts ...Option) *API

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithComponents

func WithComponents(keyAndValues ...interface{}) Option

func WithContact

func WithContact(name string, url string, email string) Option

func WithDescription

func WithDescription(description oas.RichText) Option

func WithExternalDocs

func WithExternalDocs(description oas.RichText, url string) Option

func WithLicense

func WithLicense(name string, url string) Option

func WithOperation

func WithOperation(id string, method string, path string, opts ...operation.Option) Option

func WithSchemaDefinitions

func WithSchemaDefinitions(definitions map[string]*oas.Schema) Option

func WithSecurity

func WithSecurity(requirements ...oas.SecurityRequirement) Option

func WithServer

func WithServer(protocol, hostname string, port uint16, pathname string, opts ...server.Option) Option

func WithTOS

func WithTOS(url string) Option

func WithTag

func WithTag(name string, description oas.RichText) Option

func WithTitle

func WithTitle(title string) Option

func WithVersion

func WithVersion(version string) Option

func WithWebhook

func WithWebhook(name string, method string, opts ...operation.Option) Option

Jump to

Keyboard shortcuts

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