client

package
v0.0.0-...-41c89f8 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientGenerator

type ClientGenerator interface {
	Language() string
}

type Config

type Config struct {
	Src              string
	Dest             string
	ClientGenerators map[string]ClientGenerator
}

type Generator

type Generator struct {
	Config
}

func New

func New(config Config) *Generator

func (*Generator) Generate

func (g *Generator) Generate()

func (*Generator) Register

func (g *Generator) Register(cg ClientGenerator)

type KeyVal

type KeyVal struct {
	Key string
	Val string
}

type Property

type Property struct {
	Name     string
	Type     string
	Required bool
	IsArray  bool
}

type Request

type Request struct {
	Path   []Property
	Query  []Property
	Body   []Property
	Header []KeyVal
}

type ResponseBasicType

type ResponseBasicType struct {
	Type string
}

type ResponseModel

type ResponseModel struct {
	Perperties []Property
}

type Route

type Route struct {
	Request           Request
	ResponseBasicType ResponseBasicType
	ResponseModel     ResponseModel
	Produce           string
	Consume           string
	Security          Security
}

type Security

type Security struct {
	Type             string
	Name             string
	In               string
	Flow             string
	AuthorizationUrl string
	TokenUrl         string
	Scopes           map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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