client

package
v2.1.2188-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Axios = "axios"
View Source
var BrowserFetch = "browser-fetch"
View Source
var NodeFetch = "node-fetch"

Functions

func GenerateClient

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

Types

type ClientGenerator

type ClientGenerator interface {
	ApiClient(api *spec.Api) *generator.CodeFile
}

type Generator added in v2.2.0

type Generator struct {
	validations.Validation
	ClientGenerator
	Modules *Modules
}

func NewClientGenerator

func NewClientGenerator(client, validationName string, modules *Modules) *Generator

func (*Generator) ParamsBuilder

func (g *Generator) ParamsBuilder() *generator.CodeFile

type Modules added in v2.2.0

type Modules struct {
	modules.Modules

	Params module.Module
	// contains filtered or unexported fields
}

func NewModules added in v2.2.0

func NewModules(validationName, generatePath string, specification *spec.Spec) *Modules

func (*Modules) Client added in v2.2.0

func (m *Modules) Client(api *spec.Api) module.Module

Jump to

Keyboard shortcuts

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