gomediaccc

package module
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

gomediaccc

GoDoc pipeline status coverage report codecov Go Report Card

Framework for metadata handling of media.ccc.de written in golang.

License

Copyright 2021 Martin Riedl

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Documentation

Overview

Copyright 2021 Martin Riedl

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// RecordingMimeTypeSubtitle subtitle mime type for recording
	RecordingMimeTypeSubtitle = "application/x-subrip"
	// RecordingMimeTypeVideoMp4 mp4 mime time for recording
	RecordingMimeTypeVideoMp4 = "video/mp4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conference

type Conference struct {
	Acronym             string    `json:"acronym"`
	Title               string    `json:"title"`
	EventLastReleasedAt time.Time `json:"event_last_released_at"`
	LogoURL             string    `json:"logo_url"`
	Events              []*Event  `json:"events"`
}

Conference contains all data about a single conference

func LoadConference

func LoadConference(acronym string) (conference *Conference, rawData []byte, err error)

LoadConference loads all data for a single conference

type Conferences

type Conferences struct {
	Conferences []*Conference `json:"conferences"`
}

Conferences structure with all conferences

func LoadConferences

func LoadConferences() (conferences *Conferences, rawData []byte, err error)

LoadConferences loads all conferences from media.ccc.de

type Event

type Event struct {
	GUID            string       `json:"guid"`
	Slug            string       `json:"slug"`
	Date            time.Time    `json:"date"`
	Title           string       `json:"title"`
	Description     string       `json:"description"`
	ViewCount       int          `json:"view_count"`
	Length          int          `json:"length"`
	URL             string       `json:"url"`
	FrontendLink    string       `json:"frontend_link"`
	PosterURL       string       `json:"poster_url"`
	ConferenceTitle string       `json:"conference_title"`
	ConferenceURL   string       `json:"conference_url"`
	Persons         []string     `json:"persons"`
	Recordings      []*Recording `json:"recordings"`
}

Event contains all data for a single event

func LoadEvent

func LoadEvent(guid string) (event *Event, rawData []byte, err error)

LoadEvent loads a single event

type Recording

type Recording struct {
	Size         int    `json:"size"`
	MimeType     string `json:"mime_type"`
	Language     string `json:"language"`
	Width        int    `json:"width"`
	Height       int    `json:"height"`
	FileName     string `json:"filename"`
	RecordingURL string `json:"recording_url"`
}

Recording contains all metadata for a single evnet recording

func (*Recording) Languages

func (recording *Recording) Languages() []string

Languages returns a list of all languages for this recording

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL