core

package
v0.0.0-...-268d42b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package core defines main logic for the messenger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	Name   string
	Addr   string
	PubKey ed25519.PublicKey
	// contains filtered or unexported fields
}

Core defines main logic

func New

func New(name, addr string) *Core

New creates core logic

func (*Core) Handle

func (c *Core) Handle(conn net.Conn) error

Handle provides handling of incoming messages

func (*Core) Start

func (c *Core) Start() error

Start provides initialization of the core

Jump to

Keyboard shortcuts

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