client

package
v2.1.1855 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 12 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 added in v2.1.1786

type ClientGenerator interface {
	ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []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 added in v2.1.1800

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

func NewMicronautDeclGenerator added in v2.1.1800

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

func (*MicronautDeclGenerator) ClientImplementation added in v2.1.1800

func (g *MicronautDeclGenerator) ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []generator.CodeFile

type MicronautLowGenerator added in v2.1.1802

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

func NewMicronautLowGenerator added in v2.1.1802

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

func (*MicronautLowGenerator) ClientImplementation added in v2.1.1802

func (g *MicronautLowGenerator) ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []generator.CodeFile

type OkHttpGenerator added in v2.1.1786

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

func NewOkHttpGenerator added in v2.1.1786

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

func (*OkHttpGenerator) ClientImplementation added in v2.1.1786

func (g *OkHttpGenerator) ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []generator.CodeFile

Jump to

Keyboard shortcuts

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