Add early search prototype on the client, add leave button

This commit is contained in:
khlieng 2015-05-11 01:09:59 +02:00
parent deba58dbff
commit 7aae7685c5
19 changed files with 297 additions and 60 deletions

View file

@ -2,6 +2,8 @@ package server
import (
"encoding/json"
"github.com/khlieng/name_pending/storage"
)
type WSRequest struct {
@ -111,6 +113,18 @@ type Away struct {
Message string `json:"message"`
}
type SearchRequest struct {
Server string `json:"server"`
Channel string `json:"channel"`
Phrase string `json:"phrase"`
}
type SearchResult struct {
Server string `json:"server"`
Channel string `json:"channel"`
Results []storage.Message `json:"results"`
}
type Error struct {
Server string `json:"server"`
Message string `json:"message"`