Versions in this module Expand all Collapse all v0 v0.19.2 Jul 10, 2024 Changes in this version + const Dev + const MasterPlaylistName + const Prod + const SchemaRemote + var ErrChannelNotEnabled = resolve.ErrChannelNotEnabled + var ErrNotFound = errors.New("fragment not found") + var ErrNotOK = errors.New("http response not OK") + var FetchCount = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var FetchDurationSeconds = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var FetchFailureCount = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var FetchSizeBytes = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var TranscodedCacheItemsCount = prometheus.NewGauge(prometheus.GaugeOpts{ ... }) + var TranscodedCacheMiss = prometheus.NewCounter(prometheus.CounterOpts{ ... }) + var TranscodedCacheQueryCount = prometheus.NewCounter(prometheus.CounterOpts{ ... }) + var TranscodedCacheRetry = prometheus.NewCounter(prometheus.CounterOpts{ ... }) + var TranscodedCacheSizeBytes = prometheus.NewGauge(prometheus.GaugeOpts{ ... }) + var TranscodedResult = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + func RegisterMetrics() + type Client struct + func New(cfg *Configuration) Client + func (c Client) BuildURL(loc streamLocation, filename string) string + func (c Client) GetPlaybackPath(lbryURL, sdHash string) string + func (c Client) PlayFragment(lbryURL, sdHash, fragmentName string, w http.ResponseWriter, r *http.Request) (int64, error) + func (c Client) RestoreCache() (int64, error) + type Configuration struct + func Configure() *Configuration + func (c *Configuration) CacheSize(size int64) *Configuration + func (c *Configuration) HTTPClient(httpClient HTTPRequester) *Configuration + func (c *Configuration) ItemsToPrune(i uint32) *Configuration + func (c *Configuration) LogLevel(l int) *Configuration + func (c *Configuration) RemoteServer(s string) *Configuration + func (c *Configuration) Server(server string) *Configuration + func (c *Configuration) VideoPath(videoPath string) *Configuration + type Fragment struct + func (f Fragment) Path() string + func (f Fragment) Size() int64 + type HTTPRequester interface + Do func(req *http.Request) (res *http.Response, err error)