spec

package
v15.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumTypeSpec

type EnumTypeSpec struct {
	Name   string           `json:"name"`
	Doc    string           `json:"doc"`
	Values []*EnumValueSpec `json:"values"`
}

type EnumValueSpec

type EnumValueSpec struct {
	Name  string `json:"name"`
	Doc   string `json:"doc"`
	Value string `json:"value"`
}

type FieldSpec

type FieldSpec struct {
	Name string `json:"name"`
	Doc  string `json:"doc"`
	Type string `json:"type"`
}

type NotificationSpec

type NotificationSpec struct {
	Method string      `json:"method"`
	Doc    string      `json:"doc"`
	Params *StructSpec `json:"params"`
}

type RequestSpec

type RequestSpec struct {
	Method string      `json:"method"`
	Doc    string      `json:"doc"`
	Caller string      `json:"caller"`
	Params *StructSpec `json:"params"`
	Result *StructSpec `json:"result"`
}

type Spec

type Spec struct {
	Requests      []*RequestSpec      `json:"requests"`
	Notifications []*NotificationSpec `json:"notifications"`
	StructTypes   []*StructTypeSpec   `json:"structTypes"`
	EnumTypes     []*EnumTypeSpec     `json:"enumTypes"`
}

type StructSpec

type StructSpec struct {
	Fields []*FieldSpec `json:"fields"`
}

type StructTypeSpec

type StructTypeSpec struct {
	Name   string       `json:"name"`
	Doc    string       `json:"doc"`
	Fields []*FieldSpec `json:"fields"`
}

Jump to

Keyboard shortcuts

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