client

package
v2.1.2151-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClient

func GenerateClient(specification *spec.Spec, moduleName string, generatePath string) *generator.Sources

Types

type ClientGenerator added in v2.1.2134

type ClientGenerator interface {
	GenerateClientsImplementations(version *spec.Version, versionModule, convertModule, emptyModule, errorsModule, modelsModule, respondModule module.Module) []generator.CodeFile
}

type Generator added in v2.1.2134

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

func NewGenerator added in v2.1.2134

func NewGenerator(modules *models.Modules) *Generator

func (*Generator) Errors added in v2.2.0

func (g *Generator) Errors(errorsModule, errorsModelsModule, responseModule module.Module, errors *spec.Responses) []generator.CodeFile

type NetHttpGenerator added in v2.1.2134

type NetHttpGenerator struct {
	Types *types.Types
}

func NewNetHttpGenerator added in v2.1.2134

func NewNetHttpGenerator(types *types.Types) *NetHttpGenerator

func (*NetHttpGenerator) GenerateClientsImplementations added in v2.1.2134

func (g *NetHttpGenerator) GenerateClientsImplementations(version *spec.Version, versionModule, convertModule, emptyModule, errorsModule, modelsModule, respondModule module.Module) []generator.CodeFile

Jump to

Keyboard shortcuts

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