chatty

package module
v0.0.0-...-e438b56 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 8 Imported by: 0

README

chatty

Platform agnostic chat engine written in Golang. Any DB, any protocol.

Chatty is a chat server lifecycle manager and repository that is platform agnostic. I got very tired of writing the same exact code over and over for gRPC, websockets, and thought it would be nice to have a manager that did this almost as a "microservice" (although I really don't want to call it that). It can be pluggable into any DB, although I am mostly a postgres user so I personally only will end up supporting sqllite, and postgres.

Pull Requests

Please send them. I'm an 18 year old full time student with contracting jobs here and there. It is very hard to maintain personal projects, and I would love help in cleaning this up

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionManager

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

ConnectionManager is the main connection manager struct that handles all chat connections

func NewManager

func NewManager(
	messageRepo repositories.MessageRepo,
	conversationRepo repositories.ConversationRepo,
	conversantRepo repositories.ConversantRepo,
	auther operators.Auther,
	notifier operators.Notifier) *ConnectionManager

NewManager creates a new connection manager given repos and operators

func (*ConnectionManager) Join

func (manager *ConnectionManager) Join(conn connection.Conn)

Join authorizes a connection and then joins the server

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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