mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 19:42:20 +00:00
Add package comments
This commit is contained in:
parent
473e80c5eb
commit
87d2992bdf
@ -16,5 +16,5 @@ linters:
|
|||||||
stage: quality-assurance
|
stage: quality-assurance
|
||||||
script:
|
script:
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
- golint -min_confidence 0.3 -set_exit_status ./...
|
- golint -min_confidence 0.2 -set_exit_status ./...
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package auth manages backends to auth incoming streams
|
||||||
package auth
|
package auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package basic provides a basic authentification backend
|
||||||
package basic
|
package basic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package ldap provides a LDAP authentification backend
|
||||||
package ldap
|
package ldap
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package monitoring serves Prometheus monitoring endpoints
|
||||||
package monitoring
|
package monitoring
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
2
main.go
2
main.go
@ -1,5 +1,7 @@
|
|||||||
//go:generate pkger
|
//go:generate pkger
|
||||||
|
|
||||||
|
// Package main provides the full-featured server with configuration loading
|
||||||
|
// and communication between routines.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package forwarding forwards incoming stream to other streaming services
|
||||||
package forwarding
|
package forwarding
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package srt serves a SRT server
|
||||||
package srt
|
package srt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package srt serves a SRT server
|
||||||
package srt
|
package srt
|
||||||
|
|
||||||
// #include <srt/srt.h>
|
// #include <srt/srt.h>
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
|
// Package webrtc provides the backend to simulate a WebRTC client to send stream
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"github.com/pion/webrtc/v3"
|
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/pion/rtp"
|
"github.com/pion/rtp"
|
||||||
|
"github.com/pion/webrtc/v3"
|
||||||
"gitlab.crans.org/nounous/ghostream/stream/srt"
|
"gitlab.crans.org/nounous/ghostream/stream/srt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package webrtc provides the backend to simulate a WebRTC client to send stream
|
||||||
package webrtc
|
package webrtc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
// Package web serves the JavaScript player and WebRTC negociation
|
||||||
package web
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"gitlab.crans.org/nounous/ghostream/stream/srt"
|
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
@ -12,6 +12,7 @@ import (
|
|||||||
|
|
||||||
"github.com/markbates/pkger"
|
"github.com/markbates/pkger"
|
||||||
"gitlab.crans.org/nounous/ghostream/internal/monitoring"
|
"gitlab.crans.org/nounous/ghostream/internal/monitoring"
|
||||||
|
"gitlab.crans.org/nounous/ghostream/stream/srt"
|
||||||
"gitlab.crans.org/nounous/ghostream/stream/webrtc"
|
"gitlab.crans.org/nounous/ghostream/stream/webrtc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package web serves the JavaScript player and WebRTC negociation
|
||||||
package web
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user