util

package
v0.0.0-...-d8e5f13 Latest Latest
Warning

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

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

Documentation

Overview

Package util provides server configuration and message structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// UCP username
	User string
	// UCP password
	Password string
	// UCP accesscode
	AccessCode string
	// UCP port
	Port int
	// HTTP address of the web UI
	HttpAddr string
	// Delivery notification delay in milliseconds
	DNDelay int
	// Map of billing identifier to cost
	Tariff map[string]float64
}

type Message

type Message struct {
	Message   string `json:"message"`
	Sender    string `json:"sender"`
	Recipient string `json:"recipient"`
	Timestamp string `json:"timestamp"`
}

Message is latest message to be displayed in the web UI.

Jump to

Keyboard shortcuts

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