1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 18:32:19 +00:00

Add package comments

This commit is contained in:
Alexandre Iooss 2020-10-09 22:36:02 +02:00
parent 473e80c5eb
commit 87d2992bdf
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
13 changed files with 16 additions and 3 deletions

View File

@ -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

View File

@ -1,3 +1,4 @@
// Package auth manages backends to auth incoming streams
package auth package auth
import ( import (

View File

@ -1,3 +1,4 @@
// Package basic provides a basic authentification backend
package basic package basic
import ( import (

View File

@ -1,3 +1,4 @@
// Package ldap provides a LDAP authentification backend
package ldap package ldap
import ( import (

View File

@ -1,3 +1,4 @@
// Package monitoring serves Prometheus monitoring endpoints
package monitoring package monitoring
import ( import (

View File

@ -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 (

View File

@ -1,3 +1,4 @@
// Package forwarding forwards incoming stream to other streaming services
package forwarding package forwarding
import ( import (

View File

@ -1,3 +1,4 @@
// Package srt serves a SRT server
package srt package srt
import ( import (

View File

@ -1,3 +1,4 @@
// Package srt serves a SRT server
package srt package srt
// #include <srt/srt.h> // #include <srt/srt.h>

View File

@ -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"
) )

View File

@ -1,3 +1,4 @@
// Package webrtc provides the backend to simulate a WebRTC client to send stream
package webrtc package webrtc
import ( import (

View File

@ -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"
) )

View File

@ -1,3 +1,4 @@
// Package web serves the JavaScript player and WebRTC negociation
package web package web
import ( import (