Documentation
¶
Index ¶
- Variables
- type Call
- func (*Call) BroadcastType() broadcast.Type
- func (c *Call) GetDuration() time.Duration
- func (c *Call) GetResourceName() string
- func (c *Call) PatchTGs() []int
- func (c *Call) SetShareURL(baseURL url.URL, shareID string)
- func (c *Call) ShouldStore() bool
- func (c *Call) String() string
- func (c *Call) TalkgroupTuple() talkgroups.ID
- func (c *Call) ToCallAudio() *CallAudio
- func (c *Call) ToPB() *pb.Call
- func (c *Call) ToPBMessage() *pb.Message
- type CallAudio
- type CallDuration
- type CallTranscription
- func (*CallTranscription) BroadcastType() broadcast.Type
- func (ct *CallTranscription) PatchTGs() []int
- func (*CallTranscription) ShouldStore() bool
- func (ct *CallTranscription) TalkgroupTuple() talkgroups.ID
- func (ct *CallTranscription) ToPB() *pb.CallTranscription
- func (ct *CallTranscription) ToPBMessage() *pb.Message
- type Stat
- type Stats
- type StatsInterval
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidInterval = errors.New("invalid interval")
)
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
ID uuid.UUID `json:"id" relayOut:"id"`
Audio []byte `json:"audio,omitempty" relayOut:"audio,omitempty" filenameField:"AudioName"`
AudioName string `json:"audioName,omitempty" relayOut:"audioName,omitempty"`
AudioType string `json:"audioType,omitempty" relayOut:"audioType,omitempty"`
AudioURL *string `json:"audioURL,omitempty" relayOut:"audioURL,omitempty"`
Duration CallDuration `json:"duration,omitempty" relayOut:"duration,omitempty"`
DateTime time.Time `json:"callDate,omitzero" relayOut:"dateTime,omitzero"`
Frequencies []int `json:"frequencies,omitempty" relayOut:"frequencies,omitempty"`
Frequency int `json:"frequency,omitempty" relayOut:"frequency,omitempty"`
Patches []int `json:"patches,omitempty" relayOut:"patches,omitempty"`
Source int `json:"source,omitempty" relayOut:"source,omitempty"`
System int `json:"systemId,omitempty" relayOut:"system,omitempty"`
Submitter *users.UserID `json:"submitter,omitempty" relayOut:"submitter,omitempty"`
SystemLabel string `json:"systemName,omitempty" relayOut:"systemLabel,omitempty"`
TalkerAlias *string `json:"talkerAlias,omitempty" relayOut:"talkerAlias,omitempty"`
Talkgroup int `json:"tgid,omitempty" relayOut:"talkgroup,omitempty"`
TalkgroupGroup *string `json:"talkgroupGroup,omitempty" relayOut:"talkgroupGroup,omitempty"`
TalkgroupLabel *string `json:"talkgroupLabel,omitempty" relayOut:"talkgroupLabel,omitempty"`
TGAlphaTag *string `json:"tgAlphaTag,omitempty" relayOut:"talkgroupTag,omitempty"`
Transcript *string `json:"transcript,omitempty" relayOut:"transcript,omitempty"`
MissingAudio *bool `json:"missingAudio,omitempty" relayOut:"missingAudio,omitempty"`
// contains filtered or unexported fields
}
relayOut exists for compatibility with http source CallUploadRequest as used in the relay sink.
func (*Call) BroadcastType ¶
func (*Call) GetDuration ¶
func (*Call) GetResourceName ¶
func (*Call) ShouldStore ¶
func (*Call) TalkgroupTuple ¶
func (c *Call) TalkgroupTuple() talkgroups.ID
func (*Call) ToCallAudio ¶
func (*Call) ToPBMessage ¶
type CallAudio ¶
type CallAudio struct {
ID uuid.UUID `json:"id,omitempty"`
CallDate jsontypes.Time `json:"callDate"`
AudioName *string `json:"audioName"`
AudioType *string `json:"audioType"`
AudioURL *url.URL `json:"audioURL,omitempty"`
AudioBlob []byte `json:"audioBlob,omitempty"`
}
CallAudio is a skinny Call used for audio API calls.
type CallDuration ¶
func (CallDuration) ColonFormat ¶
func (d CallDuration) ColonFormat() string
func (CallDuration) Duration ¶
func (d CallDuration) Duration() time.Duration
func (CallDuration) MarshalJSON ¶
func (d CallDuration) MarshalJSON() ([]byte, error)
func (CallDuration) MsInt32Ptr ¶
func (d CallDuration) MsInt32Ptr() *int32
func (CallDuration) Seconds ¶
func (d CallDuration) Seconds() int32
type CallTranscription ¶
type CallTranscription struct {
ID uuid.UUID `json:"id"`
TG talkgroups.ID `json:"tg"`
Patches []int `json:"patches"`
Transcript *string `json:"transcript"`
}
CallTranscription is a skinny Call used for transcription responses.
func (*CallTranscription) BroadcastType ¶
func (*CallTranscription) BroadcastType() broadcast.Type
func (*CallTranscription) PatchTGs ¶
func (ct *CallTranscription) PatchTGs() []int
func (*CallTranscription) ShouldStore ¶
func (*CallTranscription) ShouldStore() bool
func (*CallTranscription) TalkgroupTuple ¶
func (ct *CallTranscription) TalkgroupTuple() talkgroups.ID
func (*CallTranscription) ToPB ¶
func (ct *CallTranscription) ToPB() *pb.CallTranscription
func (*CallTranscription) ToPBMessage ¶
func (ct *CallTranscription) ToPBMessage() *pb.Message
type Stats ¶
type Stats struct {
Stats []Stat `json:"stats"`
Interval StatsInterval `json:"interval"`
}
func (*Stats) GetResourceName ¶
type StatsInterval ¶
type StatsInterval string
const ( IntervalMinute StatsInterval = "minute" IntervalHour StatsInterval = "hour" IntervalDay StatsInterval = "day" IntervalWeek StatsInterval = "week" IntervalMonth StatsInterval = "month" IntervalQuarter StatsInterval = "quarter" IntervalYear StatsInterval = "year" )
func (StatsInterval) IsValid ¶
func (si StatsInterval) IsValid() bool
Click to show internal directories.
Click to hide internal directories.