client

package
v2.1.2209-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Micronaut = "micronaut-low-level"
View Source
var MicronautDecl = "micronaut-declarative"
View Source
var OkHttp = "okhttp"

Functions

func Generate

func Generate(specification *spec.Spec, jsonlib, client, packageName, generatePath string) *generator.Sources

Types

type ClientGenerator

type ClientGenerator interface {
	Clients(version *spec.Version) []generator.CodeFile
	Utils(responses *spec.Responses) []generator.CodeFile
	Exceptions(errors *spec.Responses) []generator.CodeFile
}

type Generator

type Generator struct {
	ClientGenerator
	models.Generator
	Jsonlib  string
	Types    *types.Types
	Packages *Packages
}

func NewGenerator

func NewGenerator(jsonlib, client string, packages *Packages) *Generator

type MicronautDeclGenerator

type MicronautDeclGenerator struct {
	Types    *types.Types
	Models   models.Generator
	Packages *Packages
}

func NewMicronautDeclGenerator

func NewMicronautDeclGenerator(types *types.Types, models models.Generator, packages *Packages) *MicronautDeclGenerator

func (*MicronautDeclGenerator) Clients added in v2.1.2134

func (g *MicronautDeclGenerator) Clients(version *spec.Version) []generator.CodeFile

func (*MicronautDeclGenerator) Exceptions added in v2.2.0

func (g *MicronautDeclGenerator) Exceptions(errors *spec.Responses) []generator.CodeFile

func (*MicronautDeclGenerator) Utils added in v2.2.0

func (g *MicronautDeclGenerator) Utils(responses *spec.Responses) []generator.CodeFile

type MicronautGenerator added in v2.2.0

type MicronautGenerator struct {
	Types    *types.Types
	Models   models.Generator
	Packages *Packages
}

func NewMicronautGenerator added in v2.2.0

func NewMicronautGenerator(types *types.Types, models models.Generator, packages *Packages) *MicronautGenerator

func (*MicronautGenerator) Clients added in v2.2.0

func (g *MicronautGenerator) Clients(version *spec.Version) []generator.CodeFile

func (*MicronautGenerator) Exceptions added in v2.2.0

func (g *MicronautGenerator) Exceptions(errors *spec.Responses) []generator.CodeFile

func (*MicronautGenerator) Utils added in v2.2.0

func (g *MicronautGenerator) Utils(responses *spec.Responses) []generator.CodeFile

type OkHttpGenerator

type OkHttpGenerator struct {
	Types    *types.Types
	Models   models.Generator
	Packages *Packages
}

func NewOkHttpGenerator

func NewOkHttpGenerator(types *types.Types, models models.Generator, packages *Packages) *OkHttpGenerator

func (*OkHttpGenerator) Clients added in v2.1.2134

func (g *OkHttpGenerator) Clients(version *spec.Version) []generator.CodeFile

func (*OkHttpGenerator) Exceptions added in v2.2.0

func (g *OkHttpGenerator) Exceptions(errors *spec.Responses) []generator.CodeFile

func (*OkHttpGenerator) Utils added in v2.2.0

func (g *OkHttpGenerator) Utils(responses *spec.Responses) []generator.CodeFile

type Packages added in v2.1.2134

type Packages struct {
	models.Packages

	Root       packages.Package
	Utils      packages.Package
	Converters packages.Package
	// contains filtered or unexported fields
}

func NewPackages added in v2.1.2134

func NewPackages(packageName, generatePath string, specification *spec.Spec) *Packages

func (*Packages) Client added in v2.1.2134

func (p *Packages) Client(api *spec.Api) packages.Package

Jump to

Keyboard shortcuts

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