api

package
Version: v0.0.0-...-e8b97b5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server serves HTTP API requests

func NewServer

func NewServer(conf config.APIConfig, srtServer srt.Server) *Server

func (*Server) HandleSockets

func (s *Server) HandleSockets(w http.ResponseWriter, r *http.Request)

func (*Server) HandleStreams

func (s *Server) HandleStreams(w http.ResponseWriter, r *http.Request)

func (*Server) Listen

func (s *Server) Listen(ctx context.Context) error

func (*Server) Wait

func (s *Server) Wait()

Wait blocks until listening sockets have been closed

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL