Versions in this module Expand all Collapse all v2 v2.0.0 Apr 30, 2020 Changes in this version + var ErrEmptyInterfaces = errors.New("empty interfaces collection") + var ErrMixedInterfaces = errors.New("mixed interfaces collection") + var ErrMixedMethods = errors.New("mixed methods collection") + type Interface struct + Methods Methods + Name string + Undocumented bool + func (i *Interface) Key() (InterfaceKey, error) + func (i *Interface) Validate() error + type InterfaceKey struct + AppID uint32 + Name string + type InterfaceMethodNotFoundError struct + Key MethodKey + func (InterfaceMethodNotFoundError) Error() string + type InterfaceNotFoundError struct + Key InterfaceKey + func (InterfaceNotFoundError) Error() string + type Interfaces []*Interface + func MustNewInterfaces(interfaces ...*Interface) Interfaces + func NewInterfaces(interfaces ...*Interface) (Interfaces, error) + func (c Interfaces) Get(key InterfaceKey) (*Interface, error) + func (c Interfaces) GroupByBaseName() (map[string]InterfacesGroup, error) + func (c Interfaces) Validate() error + type InterfacesGroup map[InterfaceKey]*Interface + func (g InterfacesGroup) AppIDs() []uint32 + func (g InterfacesGroup) GroupMethods() (map[string]MethodsGroup, error) + func (g InterfacesGroup) Name() (name string) + type InvalidInterfaceNameError struct + Err error + Interface *Interface + func (InvalidInterfaceNameError) Error() string + type InvalidMethodHTTPMethodError struct + Method *Method + func (InvalidMethodHTTPMethodError) Error() string + type InvalidMethodNameError struct + Method *Method + func (InvalidMethodNameError) Error() string + type InvalidMethodVersionError struct + Method *Method + func (InvalidMethodVersionError) Error() string + type Method struct + HTTPMethod string + Name string + Params MethodParams + Undocumented bool + Version int + func (m *Method) FormatVersion() string + func (m *Method) Key() (MethodKey, error) + func (m *Method) Validate() error + func (m *Method) ValidateParams(params url.Values) error + type MethodKey struct + Name string + Version int + type MethodParam struct + Description string + Name string + Optional bool + Type string + func (p *MethodParam) ValidateValue(value string) error + type MethodParams []*MethodParam + func NewMethodParams(params ...*MethodParam) MethodParams + func (c MethodParams) ValidateParams(params url.Values) error + type Methods []*Method + func MustNewMethods(methods ...*Method) Methods + func NewMethods(methods ...*Method) (Methods, error) + func (c Methods) Get(key MethodKey) (*Method, error) + func (c Methods) GroupByName() (map[string]MethodsGroup, error) + func (c Methods) Validate() error + type MethodsGroup map[MethodKey]*Method + func (g MethodsGroup) Versions() []int + type RequiredParameterError struct + Param *MethodParam + func (RequiredParameterError) Error() string + type Schema struct + Host string + Interfaces Interfaces + func (s *Schema) Validate() error