sources

package
v0.0.0-...-0964334 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallUploadRequest

type CallUploadRequest struct {
	Audio          []byte `form:"audio" filenameField:"AudioName"`
	AudioName      string
	AudioType      string    `form:"audioType"`
	DateTime       time.Time `form:"dateTime"`
	Frequencies    []int     `form:"frequencies"`
	Frequency      int       `form:"frequency"`
	Key            string    `form:"key"`
	Patches        []int     `form:"patches"`
	Source         int       `form:"source"`
	System         int       `form:"system"`
	SystemLabel    string    `form:"systemLabel"`
	TalkerAlias    string    `form:"talkerAlias"`
	Talkgroup      int       `form:"talkgroup"`
	TalkgroupGroup string    `form:"talkgroupGroup"`
	TalkgroupLabel string    `form:"talkgroupLabel"`
	TalkgroupTag   string    `form:"talkgroupTag"`
	DontStore      bool      `form:"dontStore"`
}

func (*CallUploadRequest) ToCall

func (car *CallUploadRequest) ToCall(submitter users.UserID) (*calls.Call, error)

type Ingestor

type Ingestor interface {
	Ingest(context.Context, *calls.Call) error
}

type PublicRouteSource

type PublicRouteSource interface {
	InstallPublicRoutes(chi.Router)
}

type RdioHTTP

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

RdioHTTP is an source that accepts calls using the rdio-scanner HTTP interface.

func NewRdioHTTP

func NewRdioHTTP(auth authn.Authn, ing Ingestor) *RdioHTTP

NewHTTPIngestor creates a new HTTPIngestor. It requires an Authenticator.

func (*RdioHTTP) InstallPublicRoutes

func (h *RdioHTTP) InstallPublicRoutes(r chi.Router)

InstallPublicRoutes installs the HTTP source's routes to the provided chi Router.

func (*RdioHTTP) SourceType

func (r *RdioHTTP) SourceType() string

type Source

type Source interface {
	SourceType() string
}

type Sources

type Sources []sourceInstance

func (*Sources) PublicRoutes

func (s *Sources) PublicRoutes(r chi.Router)

func (*Sources) Register

func (s *Sources) Register(name string, src Source)

Jump to

Keyboard shortcuts

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