stremio_wrap

package
v0.0.0-...-d5ce8da Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtractRequestBaseURL = shared.ExtractRequestBaseURL
View Source
var IsMethod = shared.IsMethod
View Source
var SendError = shared.SendError

Functions

func AddStremioWrapEndpoints

func AddStremioWrapEndpoints(mux *http.ServeMux)

func SendHTML

func SendHTML(w http.ResponseWriter, statusCode int, data bytes.Buffer)

func SendResponse

func SendResponse(w http.ResponseWriter, statusCode int, data any)

Types

type UserData

type UserData struct {
	ManifestURL string `json:"manifest_url"`
	StoreName   string `json:"store"`
	StoreToken  string `json:"token"`
	CachedOnly  bool   `json:"cached"`
	// contains filtered or unexported fields
}

func (UserData) GetEncoded

func (ud UserData) GetEncoded() (string, error)

func (UserData) GetRequestContext

func (ud UserData) GetRequestContext(r *http.Request) (*context.RequestContext, error)

func (UserData) HasRequiredValues

func (ud UserData) HasRequiredValues() bool

Jump to

Keyboard shortcuts

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