Documentation
¶
Index ¶
Constants ¶
View Source
const ( ERROR = "ERROR" ITEMS_REQUEST = "ITEMS_REQUEST" ITEMS_RECEIVE = "ITEMS_RECEIVE" INDICES_REQUEST = "INDICES_REQUEST" INDICES_RECEIVE = "INDICES_RECEIVE" FIELDS_REQUEST = "FIELDS_REQUEST" FIELDS_RECEIVE = "FIELDS_RECEIVE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorMessage ¶
type ErrorMessage struct {
Query string `json:"query"`
Color string `json:"color"`
Message string `json:"message"`
}
func (*ErrorMessage) MarshalJSON ¶
func (em *ErrorMessage) MarshalJSON() ([]byte, error)
type FieldsMessage ¶
type FieldsMessage struct {
Server string `json:"server"`
Index string `json:"index"`
Fields interface{} `json:"fields"`
}
func (*FieldsMessage) MarshalJSON ¶
func (em *FieldsMessage) MarshalJSON() ([]byte, error)
type IndicesMessage ¶
type IndicesMessage struct {
Server string `json:"server"`
Indices interface{} `json:"results"`
}
func (*IndicesMessage) MarshalJSON ¶
func (em *IndicesMessage) MarshalJSON() ([]byte, error)
type ResultsMessage ¶
type ResultsMessage struct {
Server string `json:"server"`
Query string `json:"query"`
Color string `json:"color"`
Results interface{} `json:"results"`
}
func (*ResultsMessage) MarshalJSON ¶
func (em *ResultsMessage) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.