client

package
v2.1.2215-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(specification *spec.Spec, jsonlib string, packageName string, generatePath string) *generator.Sources

Types

type Generator

type Generator struct {
	models.Generator
	Jsonlib  string
	Types    *types.Types
	Packages *Packages
}

func NewGenerator

func NewGenerator(jsonlib string, packages *Packages) *Generator

func (*Generator) Clients

func (g *Generator) Clients(version *spec.Version) []generator.CodeFile

func (*Generator) Exceptions added in v2.1.2134

func (g *Generator) Exceptions(errors *spec.Responses) []generator.CodeFile

func (*Generator) Utils added in v2.1.2134

func (g *Generator) Utils(responses *spec.Responses) []generator.CodeFile

type Packages added in v2.1.2134

type Packages struct {
	models.Packages

	Root  packages.Package
	Utils 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