Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Method ¶
type Method struct {
Host string
Version string
Name string
RemoteName string
Roles []string
ParamConverters []converter.Converter
ResultConverters []converter.Converter
}
Method struct.
type MethodCollection ¶
type MethodCollection struct {
Methods []Method
}
MethodCollection keeps collection of Methods
func NewMethodCollection ¶
func NewMethodCollection() MethodCollection
NewMethodCollection returns new collection
func (*MethodCollection) Add ¶
func (c *MethodCollection) Add(m Method)
Add adds methos to collection
func (*MethodCollection) Find ¶
func (c *MethodCollection) Find(methodName string) *Method
Find returns method from collection by its name
func (*MethodCollection) Merge ¶
func (c *MethodCollection) Merge(c2 MethodCollection) MethodCollection
Merge combines collection to a new one
type Remote ¶
type Remote struct {
Client *http.Client
Methods MethodCollection
}
Click to show internal directories.
Click to hide internal directories.