Documentation ¶
Index ¶
- Constants
- func DataOutputParameter(name string) *state.Parameter
- func DefaultDataOutputParameter() *state.Parameter
- func DefaultStatusOutputParameter() *state.Parameter
- func EnsureParameterTypes(parameters []*state.Parameter, aView *view.View, doc state.Documentation, ...)
- func StatusSuccess(state *expand.State) response.Status
- func UpdateOutputParameterType(parameter *state.Parameter)
- func UpdateParameterAsyncType(parameter *state.Parameter)
- func UpdateParameterMetaType(parameter *state.Parameter)
- type BodySelector
- type Contract
- type Dispatcher
- type Input
- type Output
- func (o *Output) ContentType(format string) string
- func (o *Output) Excluded() map[string]bool
- func (o *Output) Format(query url.Values) string
- func (o *Output) GetTitle() string
- func (o *Output) Init(ctx context.Context, aView *view.View, inputType *state.Type, isReader bool) (err error)
- func (o *Output) IsRevealMetric() bool
- func (o *Output) ShouldNormalizeExclude() bool
- type Path
- type Style
Constants ¶
View Source
const (
FormatQuery = "_format"
)
Variables ¶
This section is empty.
Functions ¶
func DataOutputParameter ¶
func EnsureParameterTypes ¶
func EnsureParameterTypes(parameters []*state.Parameter, aView *view.View, doc state.Documentation, filterDoc state.Documentation)
EnsureParameterTypes update output kind parameter type
func StatusSuccess ¶
TODO move it to some other package
func UpdateParameterMetaType ¶
Types ¶
type BodySelector ¶
type BodySelector struct {
StateValue string
}
BodySelector deprecated, use output parameter instead deprecated
type Contract ¶
type Contract struct { Name string `json:",omitempty" yaml:",omitempty"` Input Input Output Output ModulePath string Service service.Type `json:",omitempty"` }
func (*Contract) OutputType ¶
type Dispatcher ¶
type Input ¶
type Output ¶
type Output struct { Cardinality state.Cardinality `json:",omitempty"` CaseFormat text.CaseFormat `json:",omitempty"` OmitEmpty bool `json:",omitempty"` Style Style `json:",omitempty"` Title string `json:",omitempty"` //Filed defines optional main view data holder //deprecated Field string `json:",omitempty"` Exclude []string NormalizeExclude *bool DebugKind view.MetaKind DataFormat string `json:",omitempty"` //default data format ResponseBody *BodySelector RevealMetric *bool Type state.Type Doc state.Documentation FilterDoc state.Documentation // contains filtered or unexported fields }
func (*Output) ContentType ¶
func (*Output) IsRevealMetric ¶
func (*Output) ShouldNormalizeExclude ¶
Click to show internal directories.
Click to hide internal directories.