core

package
v0.0.0-...-4135f6e Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageStateInServer = iota + 1
	MessageStateSent
	MessageStateDelivered
	MessageStateRead
)
View Source
const USERDISCOVERY = "user-discovery"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatService

type ChatService interface {
	NewMessage(ctx context.Context, msg *proto.Message) error
}

func NewChatService

func NewChatService(pushers ...Pusher) (ChatService, error)

type Pusher

type Pusher interface {
	Push(to string, message *proto.Message) error
}

Jump to

Keyboard shortcuts

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