client

package
v2.1.2131-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MicronautDecl = "micronaut-declarative"
View Source
var MicronautLow = "micronaut-low-level"
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
}

type Generator

type Generator struct {
	Types  *types.Types
	Models models.Generator
	Client ClientGenerator
}

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

type MicronautLowGenerator

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

func NewMicronautLowGenerator

func NewMicronautLowGenerator(types *types.Types, models models.Generator, packages *Packages) *MicronautLowGenerator

func (*MicronautLowGenerator) Clients added in v2.1.2134

func (g *MicronautLowGenerator) Clients(version *spec.Version) []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

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