Documentation ¶
Index ¶
- Constants
- func Service(name string, f ServiceFunc) *expr.ServiceExpr
- type AttributeElement
- type Element
- type ElementBase
- type Elements
- type ElementsMap
- type Method
- type MethodFunc
- type NamedElement
- func (el *NamedElement) Clone() *NamedElement
- func (el *NamedElement) GetName() string
- func (el *NamedElement) IsRequired() bool
- func (el *NamedElement) Optional() *NamedElement
- func (el *NamedElement) Required() *NamedElement
- func (el *NamedElement) WithInHTTP(f func(name string)) *NamedElement
- func (el *NamedElement) WithInMethod(f func(name string)) *NamedElement
- func (el *NamedElement) WithInPayload(f func(name string)) *NamedElement
- type Payload
- type PayloadFunc
- type ServiceFunc
- type Srvc
Constants ¶
View Source
const Version = "0.1.2"
Variables ¶
This section is empty.
Functions ¶
func Service ¶
func Service(name string, f ServiceFunc) *expr.ServiceExpr
Types ¶
type AttributeElement ¶
type ElementBase ¶
type ElementBase struct {
// contains filtered or unexported fields
}
func NewElementBase ¶
func NewElementBase(inMethod, inPayload, inHTTP func()) *ElementBase
func (*ElementBase) InHTTP ¶
func (el *ElementBase) InHTTP()
func (*ElementBase) InMethod ¶
func (el *ElementBase) InMethod()
func (*ElementBase) InPayload ¶
func (el *ElementBase) InPayload()
type ElementsMap ¶
func ElementsMapWithMultiKeys ¶
func ElementsMapWithMultiKeys(element Element, keys ...string) ElementsMap
func (ElementsMap) Merge ¶
func (em ElementsMap) Merge(other ElementsMap) ElementsMap
type Method ¶
func (*Method) ElementsAll ¶
type MethodFunc ¶
type MethodFunc func(*Method)
type NamedElement ¶
type NamedElement struct { Name string *ElementBase // contains filtered or unexported fields }
func NewNamedElement ¶
func NewNamedElement(name string, inMethod, inPayload, inHTTP func(string)) *NamedElement
func (*NamedElement) Clone ¶
func (el *NamedElement) Clone() *NamedElement
func (*NamedElement) GetName ¶
func (el *NamedElement) GetName() string
func (*NamedElement) IsRequired ¶
func (el *NamedElement) IsRequired() bool
func (*NamedElement) Optional ¶
func (el *NamedElement) Optional() *NamedElement
func (*NamedElement) Required ¶
func (el *NamedElement) Required() *NamedElement
func (*NamedElement) WithInHTTP ¶
func (el *NamedElement) WithInHTTP(f func(name string)) *NamedElement
func (*NamedElement) WithInMethod ¶
func (el *NamedElement) WithInMethod(f func(name string)) *NamedElement
func (*NamedElement) WithInPayload ¶
func (el *NamedElement) WithInPayload(f func(name string)) *NamedElement
type PayloadFunc ¶
type PayloadFunc func(*Payload)
func FilterPayloadFunc ¶ added in v0.1.3
func FilterPayloadFunc(s []interface{}) ([]PayloadFunc, []interface{})
type ServiceFunc ¶
type ServiceFunc func(*Srvc)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.