yp

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetYPResponse

func GetYPResponse(w http.ResponseWriter, r *http.Request)

GetYPResponse gets the status of the server for YP purposes.

Types

type YP

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

YP is a service for handling listing in the Owncast directory.

func NewYP

func NewYP(getStatusFunc func() models.Status) *YP

NewYP creates a new instance of the YP service handler.

func (*YP) Start

func (yp *YP) Start()

Start is run when a live stream begins to start pinging YP.

func (*YP) Stop

func (yp *YP) Stop()

Stop stops the pinging of YP.

Jump to

Keyboard shortcuts

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