godapnet

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 8 Imported by: 0

README

godapnet

Go Module to support sending messages on the DAPNet Network for Amateur Radio POCSAG Pagers

Documentation

Index

Constants

View Source
const BaseURL = "https://hampager.de/api"
View Source
const CallsEndpoint = "/calls"
View Source
const MaxMessageLength = 80

Variables

This section is empty.

Functions

func GeneratePayload

func GeneratePayload(messages []Message) []string

func SendMessage

func SendMessage(payloads []string, username string, password string)

Types

type Message

type Message struct {
	Text                  string   `json:"text"`
	CallsignNames         []string `json:"callSignNames"`
	TransmitterGroupNames []string `json:"transmitterGroupNames"`
	Emergency             bool     `json:"emergency"`
}

func CreateMessage

func CreateMessage(prefix string, text string, callsignNames []string, transmitterGroupNames []string, emergency bool) []Message

type Sender

type Sender struct {
	Callsign string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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