client

package
v2.1.2077-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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, thePackage packages.Package, modelsVersionPackage packages.Package, errorModelsPackage packages.Package, jsonPackage packages.Package, mainPackage packages.Package) []generator.CodeFile
}

type Generator

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

func NewGenerator

func NewGenerator(jsonlib, client string) *Generator

type MicronautDeclGenerator

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

func NewMicronautDeclGenerator

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

func (*MicronautDeclGenerator) Clients added in v2.1.2134

func (g *MicronautDeclGenerator) Clients(version *spec.Version, thePackage packages.Package, modelsVersionPackage packages.Package, errorModelsPackage packages.Package, jsonPackage packages.Package, mainPackage packages.Package) []generator.CodeFile

type MicronautLowGenerator

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

func NewMicronautLowGenerator

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

func (*MicronautLowGenerator) Clients added in v2.1.2134

func (g *MicronautLowGenerator) Clients(version *spec.Version, thePackage packages.Package, modelsVersionPackage packages.Package, errorModelsPackage packages.Package, jsonPackage packages.Package, mainPackage packages.Package) []generator.CodeFile

type OkHttpGenerator

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

func NewOkHttpGenerator

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

func (*OkHttpGenerator) Clients added in v2.1.2134

func (g *OkHttpGenerator) Clients(version *spec.Version, thePackage packages.Package, modelsVersionPackage packages.Package, errorModelsPackage packages.Package, jsonPackage packages.Package, mainPackage packages.Package) []generator.CodeFile

Jump to

Keyboard shortcuts

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