config

package
v3.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interfaces           []*Interface `mapstructure:"Interface"`
	MethodOptions        []MethodOption
	MethodDefaultOptions MethodOptions

	MethodOptionsMap map[string]MethodOptions `mapstructure:"-"`
}

Config @swipe:"Echo"

func (*Config) Options

func (*Config) Options() []byte

type Interface

type Interface struct {
	Named      *option.NamedType  `mapstructure:"iface"`
	Namespace  string             `mapstructure:"ns"`
	ClientName option.StringValue `swipe:"option"`
}

type MethodOption

type MethodOption struct {
	Signature     *option.NamedType
	MethodOptions `mapstructure:",squash"`
}

type MethodOptions

type MethodOptions struct {
	RESTMethod             option.ExprStringValue  `swipe:"option"`
	RESTWrapResponse       option.StringValue      `swipe:"option"`
	RESTWrapRequest        option.StringValue      `swipe:"option"`
	RESTPath               option.ExprStringValue  `swipe:"option"`
	RESTMultipartMaxMemory option.Int64Value       `swipe:"option"`
	RESTHeaderVars         option.SliceStringValue `swipe:"option"`
	RESTQueryVars          option.SliceStringValue `swipe:"option"`
	RESTQueryValues        option.SliceStringValue `swipe:"option"`
	RESTPathVars           map[string]string       `swipe:"option"`
	RESTBodyType           option.StringValue      `swipe:"option"`
}

Jump to

Keyboard shortcuts

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