Documentation ¶
Index ¶
- Constants
- Variables
- func CloseAll()
- func GetParams() []upload.UploadParameters
- func GetReqs() ([]*http.Request, []url.Values)
- func LoadSampleDir(name string, dir string, dataOnMissing ...[]byte) (data []byte)
- func NewTestAwsUpload(params upload.UploadParameters) (upload.AwsUploadF, error)
- func ResetReqs()
- func SetSampleDir(sampleDir string)
- type TestAwsUpload
- type TestServer
- func (t *TestServer) Close()
- func (s *TestServer) GetReqs() ([]*http.Request, []url.Values)
- func (t *TestServer) GetUrl() string
- func (t *TestServer) LoadSample(name string) (data []byte)
- func (t *TestServer) LoadSampleV2(name string) []byte
- func (t *TestServer) Reset()
- func (s *TestServer) Setup() string
Constants ¶
View Source
const ( UPLOAD_KEY = "projects/0a/bf/0abfe1b849154082993f2fce77a16fd9/uploads/videos/55/d4/55d4062f99454c9fb21e5186a09c2115.mp4" V2_INVALID_AUTH = `{"message" : "invalid auth"}` V2_VIDEO_ID = "9e9dc8c8-f705-41db-88da-b3034894deb9" V2_VIDEO_ID2 = "eee2bc43-e973-4f73-857d-7c0bb111a834" ASSET_ID = "01823629-bcf2-4c34-b714-ae21e1a4647f" ASSET_ID2 = "fc3e5d9a-a90e-49cc-0c67-224372a59cee" TRAILER_ID = "40669c19-85aa-4c0d-9b88-ea3c3b20e514" TEST_AUTH = "" /* 277-byte string literal not displayed */ DEFAULT_AWS_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY" ACCOUNT_ID = "425b6b3b-f272-4a33-da4c-19d846685211" SETTINGS_NAME = "widevine" DEFAULT_SAMPLE_DIR = "sample" SYNQ_VERSION = "v2" SYNQ_ROUTE = "v1" SYNQ_LEGACY_VERSION = "v1" SYNQ_LEGACY_ROUTE = "v1" )
Variables ¶
View Source
var UploadError error
Functions ¶
func GetParams ¶
func GetParams() []upload.UploadParameters
func LoadSampleDir ¶
func NewTestAwsUpload ¶
func NewTestAwsUpload(params upload.UploadParameters) (upload.AwsUploadF, error)
func SetSampleDir ¶
func SetSampleDir(sampleDir string)
Types ¶
type TestAwsUpload ¶
type TestAwsUpload struct { }
func (TestAwsUpload) Upload ¶
func (t TestAwsUpload) Upload(body io.Reader) (*s3manager.UploadOutput, error)
type TestServer ¶
type TestServer struct { Version string SampleDir string Server *httptest.Server Reqs []*http.Request Values []url.Values }
func LastServer ¶
func LastServer() *TestServer
func SetupServer ¶
func SetupServer(args ...string) *TestServer
func (*TestServer) Close ¶
func (t *TestServer) Close()
func (*TestServer) GetUrl ¶
func (t *TestServer) GetUrl() string
func (*TestServer) LoadSample ¶
func (t *TestServer) LoadSample(name string) (data []byte)
legacy sample loader still used by v2/synq media
func (*TestServer) LoadSampleV2 ¶
func (t *TestServer) LoadSampleV2(name string) []byte
func (*TestServer) Reset ¶
func (t *TestServer) Reset()
func (*TestServer) Setup ¶
func (s *TestServer) Setup() string
Click to show internal directories.
Click to hide internal directories.