server

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Authentication

func Authentication(secrets, ips []string) gin.HandlerFunc

Authentication 接口鉴权

Types

type HttpNotify

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

func NewHttpNotify

func NewHttpNotify(cfg config.HttpNotifyConfig, serverId string) *HttpNotify

func (*HttpNotify) NotifyOnHlsMakeTs

func (h *HttpNotify) NotifyOnHlsMakeTs(info base.HlsMakeTsInfo)

func (*HttpNotify) NotifyPubStart

func (h *HttpNotify) NotifyPubStart(info base.PubStartInfo)

func (*HttpNotify) NotifyPubStop

func (h *HttpNotify) NotifyPubStop(info base.PubStopInfo)

func (*HttpNotify) NotifyPullStart

func (h *HttpNotify) NotifyPullStart(info base.PullStartInfo)

func (*HttpNotify) NotifyPullStop

func (h *HttpNotify) NotifyPullStop(info base.PullStopInfo)

func (*HttpNotify) NotifyRtmpConnect

func (h *HttpNotify) NotifyRtmpConnect(info base.RtmpConnectInfo)

func (*HttpNotify) NotifyServerStart

func (h *HttpNotify) NotifyServerStart(info base.LalInfo)

func (*HttpNotify) NotifySubStart

func (h *HttpNotify) NotifySubStart(info base.SubStartInfo)

func (*HttpNotify) NotifySubStop

func (h *HttpNotify) NotifySubStop(info base.SubStopInfo)

func (*HttpNotify) NotifyUpdate

func (h *HttpNotify) NotifyUpdate(info base.UpdateInfo)

func (*HttpNotify) NotifyUpdateRunLoop

func (h *HttpNotify) NotifyUpdateRunLoop()

func (*HttpNotify) OnHlsMakeTs

func (h *HttpNotify) OnHlsMakeTs(info base.HlsMakeTsInfo)

func (*HttpNotify) OnPubStart

func (h *HttpNotify) OnPubStart(info base.PubStartInfo)

func (*HttpNotify) OnPubStop

func (h *HttpNotify) OnPubStop(info base.PubStopInfo)

func (*HttpNotify) OnRelayPullStart

func (h *HttpNotify) OnRelayPullStart(info base.PullStartInfo)

func (*HttpNotify) OnRelayPullStop

func (h *HttpNotify) OnRelayPullStop(info base.PullStopInfo)

func (*HttpNotify) OnRtmpConnect

func (h *HttpNotify) OnRtmpConnect(info base.RtmpConnectInfo)

func (*HttpNotify) OnServerStart

func (h *HttpNotify) OnServerStart(info base.LalInfo)

func (*HttpNotify) OnSubStart

func (h *HttpNotify) OnSubStart(info base.SubStartInfo)

func (*HttpNotify) OnSubStop

func (h *HttpNotify) OnSubStop(info base.SubStopInfo)

func (*HttpNotify) OnUpdate

func (h *HttpNotify) OnUpdate(info base.UpdateInfo)

func (*HttpNotify) RunLoop

func (h *HttpNotify) RunLoop()

type LalMaxServer

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

func NewLalMaxServer

func NewLalMaxServer(conf *config.Config) (*LalMaxServer, error)

func (*LalMaxServer) Cors

func (s *LalMaxServer) Cors() gin.HandlerFunc

func (*LalMaxServer) HandleHls

func (s *LalMaxServer) HandleHls(c *gin.Context)

func (*LalMaxServer) HandleHttpFmp4

func (s *LalMaxServer) HandleHttpFmp4(c *gin.Context)

func (*LalMaxServer) HandleJessibuca

func (s *LalMaxServer) HandleJessibuca(c *gin.Context)

func (*LalMaxServer) HandleOnvifPull

func (s *LalMaxServer) HandleOnvifPull(c *gin.Context)

func (*LalMaxServer) HandleWHEP

func (s *LalMaxServer) HandleWHEP(c *gin.Context)

func (*LalMaxServer) HandleWHIP

func (s *LalMaxServer) HandleWHIP(c *gin.Context)

func (*LalMaxServer) InitRouter

func (s *LalMaxServer) InitRouter(router *gin.Engine)

func (*LalMaxServer) Run

func (s *LalMaxServer) Run() (err error)

type PostTask

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

Jump to

Keyboard shortcuts

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