appserver

package module
v0.0.0-...-7c3ac0f Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServer

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

func NewAppServer

func NewAppServer(api *api.Api, cfg *viper.Viper) *AppServer

func (*AppServer) Broadcast

func (srv *AppServer) Broadcast(msg interface{})

func (*AppServer) Start

func (srv *AppServer) Start()

func (*AppServer) Stop

func (srv *AppServer) Stop() error

type MessageBroadcast

type MessageBroadcast struct {
	Event string
	Data  map[string]interface{}
}

type MessageCmd

type MessageCmd struct {
	Id   string
	Cmd  string
	Data map[string]interface{}
}

type MessageError

type MessageError struct {
	Code    int
	Message string
}

type MessageReply

type MessageReply struct {
	Id    string
	Ok    bool
	Data  map[string]interface{}
	Error MessageError
}

Jump to

Keyboard shortcuts

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