Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MethodTagToString ¶
MethodTagToString Преобразует тэг в строку
Types ¶
type Error ¶
type Error struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
Error object
func ErrInternalError ¶
func ErrInternalError(data interface{}) *Error
ErrInternalError Internal JSON-RPC error.
func ErrInvalidParams ¶
func ErrInvalidParams(data interface{}) *Error
ErrInvalidParams Invalid method parameter(s).
func ErrInvalidRequest ¶
func ErrInvalidRequest(data interface{}) *Error
ErrInvalidRequest The JSON sent is not a valid Request object.
func ErrMethodNotFound ¶
func ErrMethodNotFound(data interface{}) *Error
ErrMethodNotFound The method does not exist / is not available.
func ErrParseError ¶
func ErrParseError(data interface{}) *Error
ErrParseError Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
type MethodTag ¶
type MethodTag struct {
Service, Method string
}
MethodTag Тэг метода
func MethodTagFromString ¶
MethodTagFromString Преобразует строку в тэг
type Repo ¶
Repo Репозиторий сервисов
func (*Repo) RegisterService ¶
RegisterService Зарегистрировать сервис
Click to show internal directories.
Click to hide internal directories.