From 09234cef4a0f699d198a4fe46476d0409907a8c0 Mon Sep 17 00:00:00 2001 From: Wijnand Modderman-Lenstra Date: Tue, 8 Dec 2015 14:51:17 +0100 Subject: [PATCH] Docs --- homebrew/homebrew.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homebrew/homebrew.go b/homebrew/homebrew.go index 18dfa73..52d2e8d 100644 --- a/homebrew/homebrew.go +++ b/homebrew/homebrew.go @@ -84,6 +84,9 @@ func (r *RepeaterConfiguration) String() string { return b } +// ConfigFunc returns an actual RepeaterConfiguration instance when called. +// This is used by the DMR repeater to poll for current configuration, +// statistics and metrics. type ConfigFunc func() *RepeaterConfiguration // CallType reflects the DMR data frame call type. @@ -150,6 +153,7 @@ func ParseFrame(data []byte) (*Frame, error) { return f, nil } +// StreamFunc is called by the DMR repeater when a DMR data frame is received. type StreamFunc func(*Frame) type authStatus byte