service

package
v0.0.0-...-48a5da2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Full, Normal string
}

type SlideShareService

type SlideShareService interface {
	Fetch(ctx context.Context, url string, optArgs ...map[string]string) (*SlideShareSlide, error)
	FetchImageLinks(ctx context.Context, url string) ([]Link, error)
}

func NewSlideShareService

func NewSlideShareService(apiKey, sharedSecret string) SlideShareService

type SlideShareServiceImpl

type SlideShareServiceImpl struct {
	APIKey, SharedSecret string
}

func (*SlideShareServiceImpl) Fetch

func (s *SlideShareServiceImpl) Fetch(ctx context.Context, url string, optArgs ...map[string]string) (*SlideShareSlide, error)
func (s *SlideShareServiceImpl) FetchImageLinks(ctx context.Context, url string) ([]Link, error)

type SlideShareSlide

type SlideShareSlide struct {
	ID                uint32 `xml:"ID"`
	Title             string `xml:"Title"`
	Description       string `xml:"Description"`
	Username          string `xml:"Username"`
	Status            uint8  `xml:"Status"`
	URL               string `xml:"URL"`
	ThumbnailURL      string `xml:"ThumbnailURL"`
	ThumbnailSize     string `xml:"ThumbnailSize"`
	ThumbnailSmallURL string `xml:"ThumbnailSmallURL"`
	Embed             string `xml:"Embed"`
	Created           string `xml:"Created"`
	Updated           string `xml:"Updated"`
	Language          string `xml:"Language"`
	Format            string `xml:"Format"`
	Download          bool   `xml:"Download"`
	DownloadURL       string `xml:"DownloadUrl"`
	SlideshowType     uint8  `xml:"SlideshowType"`
	InContest         bool   `xml:"InContest"`
}

type SpeakerDeckService

type SpeakerDeckService interface {
	Fetch(ctx context.Context, url string) (*SpeakerDeckSlide, error)
}

func NewSpeakerDeckService

func NewSpeakerDeckService() SpeakerDeckService

type SpeakerDeckServiceImpl

type SpeakerDeckServiceImpl struct{}

func (*SpeakerDeckServiceImpl) Fetch

type SpeakerDeckSlide

type SpeakerDeckSlide struct {
	Title, Description, DownloadURL, FileName string
}

type Storage

type Storage interface {
	Upload(ctx context.Context, rc io.ReadCloser, fileName string) (string, error)
}

func NewStorage

func NewStorage(bucket string) Storage

type StorageService

type StorageService struct {
	// contains filtered or unexported fields
}

func (*StorageService) Upload

func (s *StorageService) Upload(ctx context.Context, rc io.ReadCloser, fileName string) (string, error)

Jump to

Keyboard shortcuts

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