models

package
v0.0.0-...-33f159f Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	OperationID string          // ie. CosmosBankV1Beta1AllBalances
	Description string          // ie. Query all balances returns all the balances of a single account.
	Tags        []string        // ie /cosmos/bank/v1beta1/balances/{address} = cosmos,bank,balances
	Action      string          // ie. GET, POST, PUT, DELETE
	Path        string          // ie. /cosmos/bank/v1beta1/balances/{address}
	Responses   []string        // ie. 200, 400, 404
	Parameters  []YAMLParameter // ie. address, denom
}

Endpoints is a list of endpoints in a YAML file and all associated data

type MapIntInt

type MapIntInt map[interface{}]interface{}

MapIntInt is a map of interface{} to interface{}

type YAMLDefinition

type YAMLDefinition struct {
	Description string
	Type        string
	Properties  []YAMLProperty
}

YAMLParameter is a parameter in a YAML file

type YAMLParameter

type YAMLParameter struct {
	Name        string
	Description string
	Required    bool
	Type        string
	Format      string
	In          string
}

type YAMLProperty

type YAMLProperty struct {
	Name        string
	Description string
	Type        string
	Format      string
	Default     string
}

type Yaml2SDK

type Yaml2SDK struct {
	// contains filtered or unexported fields
}

func NewYaml2SDK

func NewYaml2SDK(file string) *Yaml2SDK

Jump to

Keyboard shortcuts

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