api

package
v0.0.12-patch-9 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTMiddleware

func JWTMiddleware(next http.Handler) http.Handler

Types

type ClientInfo

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

type Operation

type Operation struct {
	Method string `json:"method"`
	URL    string `json:"url"`
	Stop   bool   `json:"stop"`
}

type OperationChange

type OperationChange struct {
	Method    string `json:"method"`
	SourceURL string `json:"source_url"`
	TargetURL string `json:"target_url"`
	Stop      bool   `json:"stop"`
}

type Response

type Response struct {
	Status int         `json:"status"`
	Data   interface{} `json:"data"`
	// contains filtered or unexported fields
}

func (*Response) SendJson

func (r *Response) SendJson() (int, error)

type Server

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

func NewServer

func NewServer(h av.Handler, rtmpAddr string) *Server

func (*Server) GetLiveStatics

func (server *Server) GetLiveStatics(w http.ResponseWriter, req *http.Request)

http://127.0.0.1:8090/stat/livestat

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

Jump to

Keyboard shortcuts

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