Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebsocketChatHandler ¶
func WebsocketChatHandler(hub *Hub, w http.ResponseWriter, r *http.Request)
Types ¶
type Message ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetAllChats ¶
type Store ¶
type Store interface { SaveChat(ctx context.Context, uuid1, uuid2 string) error GetChat(ctx context.Context, uuid1, uuid2 string) error GetAllChats(ctx context.Context, uuid string) ([]string, error) SaveMessage(ctx context.Context, m *Message) error LoadAllMessages(ctx context.Context, uuid1, uuid2 string) ([]*Message, error) }
Click to show internal directories.
Click to hide internal directories.