server

package
v0.0.0-...-f176acd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	// contains filtered or unexported fields
}

func NewEventHandler

func NewEventHandler(macaronapp *macaron.Macaron, injector *injects.BasicInject, cilen *kahla.Client) *EventHandler

func (*EventHandler) AcceptFriendRequest

func (h *EventHandler) AcceptFriendRequest() error

func (*EventHandler) NewFriendRequestEvent

func (h *EventHandler) NewFriendRequestEvent(v *pusher.Pusher_NewFriendRequestEvent) error

func (*EventHandler) NewMessageEvent

func (h *EventHandler) NewMessageEvent(v *pusher.Pusher_NewMessageEvent) error

func (*EventHandler) ProcessNewMessageEvent

func (h *EventHandler) ProcessNewMessageEvent(content string, v *pusher.Pusher_NewMessageEvent) error

func (*EventHandler) UpdateConversation

func (h *EventHandler) UpdateConversation() error

func (*EventHandler) WereDeletedEvent

func (h *EventHandler) WereDeletedEvent(v *pusher.Pusher_WereDeletedEvent) error

type PusherEventServer

type PusherEventServer struct {
	// contains filtered or unexported fields
}

func NewPusherServer

func NewPusherServer(macaronapp *macaron.Macaron, injector *injects.BasicInject) *PusherEventServer

func (*PusherEventServer) EventHandler

func (server *PusherEventServer) EventHandler(i interface{})

func (*PusherEventServer) Run

func (server *PusherEventServer) Run(interrupt chan struct{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL