server

package
v0.0.0-...-d0e18b1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HCSrvChan

type HCSrvChan struct {
	Key      bc.PubKey
	Password string
	Admins   []string
	Users    []string
}

HCSrvChan - Server data record

type Server

type Server struct {
	// Globals
	HCSrvChans map[string]*HCSrvChan
	HCSrvUsers map[string]bc.PubKey

	// Settings
	Node api.Node
}

Server - Hushcom Server

func New

func New(node api.Node) *Server

New : Make a new instance of a Hushcom Server

func (*Server) GetName

func (*Server) GetName() string

GetName - Getter for readable name of the module

func (*Server) HandleMsg

func (modInst *Server) HandleMsg(msg api.Msg) error

HandleMsg - handler for messages

Jump to

Keyboard shortcuts

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