context

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package context provides Telly specific context functions like SQLite access, along with initialized API clients and other packages such as models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CContext

type CContext struct {
	API                  *models.APICollection
	Ctx                  ctx.Context
	GuideSourceProviders map[int]guideproviders.GuideProvider
	Log                  *logrus.Logger
	Streams              map[string]*streamsuite.Stream
	Tuners               map[int]chan bool
	VideoSourceProviders map[int]videoproviders.VideoProvider

	RawSQL *sqlx.DB
}

CContext is a context struct that gets passed around the application.

func NewCContext

func NewCContext(log *logrus.Logger) (*CContext, error)

NewCContext returns an initialized CContext struct

func (*CContext) Copy

func (cc *CContext) Copy() *CContext

Copy returns a cloned version of the input CContext minus the User and Device fields.

Jump to

Keyboard shortcuts

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