client

package
v2.1.1967-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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

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

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

func NewMicronautDeclGenerator

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

func (*MicronautDeclGenerator) ClientImplementation

func (g *MicronautDeclGenerator) ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []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) ClientImplementation

func (g *MicronautLowGenerator) ClientImplementation(version *spec.Version, thePackage modules.Module, modelsVersionPackage modules.Module, jsonPackage modules.Module, mainPackage modules.Module) []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) ClientImplementation

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